physics_add_rigid_body
Apply rigid body physics to a selected object, setting body type (active or passive), mass, friction, restitution, and collision shape.
Instructions
Add rigid body physics to an object.
Args: object_name: Target object body_type: ACTIVE (affected by physics) or PASSIVE (static collider) mass: Object mass in kg (ACTIVE only) friction: Surface friction (0-1) restitution: Bounciness (0-1) collision_shape: BOX, SPHERE, CAPSULE, CYLINDER, CONE, CONVEX_HULL, MESH
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mass | No | ||
| friction | No | ||
| body_type | No | ACTIVE | |
| object_name | Yes | ||
| restitution | No | ||
| collision_shape | No | CONVEX_HULL |