game_add_collision
Add a collision shape (box, sphere, capsule, etc.) to a physics body or area node to enable collision detection and physical interactions.
Instructions
Add a collision shape to a physics body node
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": {
"parentPath": "<parentPath>",
"shapeType": "<shapeType>"
},
"name": "game_add_collision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| disabled | No | Start disabled | |
| shapeType | Yes | Shape: box, sphere/circle, capsule, cylinder, ray, segment | |
| parentPath | Yes | Path to CollisionBody/Area node | |
| shapeParams | No | Shape dimensions (e.g. {radius, height}) | |
| collisionMask | No | Collision mask bitmask | |
| collisionLayer | No | Collision layer bitmask |