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)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectPath": "<projectPath>",
"scenePath": "<scenePath>",
"nodePath": "<nodePath>",
"shapeType": "<shapeType>"
},
"name": "add_collision_shape"
}
}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 |