add_collision_shape
Add a collision shape to any physics body, automatically detecting 2D or 3D. Choose from rectangle, circle, capsule, box, sphere, or cylinder shapes.
Instructions
Add a collision shape to a physics body (auto-detects 2D/3D). Shapes: rectangle/circle/capsule (2D) or box/sphere/capsule/cylinder (3D)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | ||
| scenePath | Yes | ||
| nodePath | Yes | Path to the physics body node | |
| shapeType | Yes | Shape type: rectangle, circle, capsule, box, sphere, cylinder | |
| size | No | Size array [x,y] for 2D or [x,y,z] for 3D | |
| radius | No | Radius for circle/sphere/capsule/cylinder | |
| height | No | Height for capsule/cylinder |