physics_set_body_properties
Adjust mass, friction, bounce, gravity scale, and damping of RigidBody2D or RigidBody3D nodes in Godot scenes.
Instructions
Set physics properties for a RigidBody2D/3D node.
Category: Physics
Args: project_path: Path to the Godot project directory scene_path: Path to the scene file (relative to project) node_path: Path to the RigidBody node mass: Mass of the body in kg (default: 1.0) friction: Friction coefficient 0-1 (default: 1.0) bounce: Bounce/restitution coefficient 0-1 (default: 0.0) gravity_scale: Gravity scale multiplier (default: 1.0) linear_damp: Linear damping (default: 0.0) angular_damp: Angular damping (default: 0.0)
Returns: Success message or error description
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| scene_path | Yes | ||
| node_path | Yes | ||
| mass | No | ||
| friction | No | ||
| bounce | No | ||
| gravity_scale | No | ||
| linear_damp | No | ||
| angular_damp | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |