setup_collision
Attach a CollisionShape2D/3D to a physics body or Area. Use built-in shapes with custom sizes for 2D (pixels) or 3D (metres).
Instructions
Add a CollisionShape2D/3D child holding a built shape resource to a physics body or Area; 2D sizes are in pixels, 3D in metres
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": {
"node_path": "<node_path>",
"shape": "<shape>"
},
"name": "setup_collision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ax | No | ||
| ay | No | ||
| bx | No | ||
| by | No | ||
| name | No | CollisionShape | |
| depth | No | ||
| shape | Yes | ||
| width | No | ||
| height | No | ||
| points | No | ||
| radius | No | ||
| disabled | No | ||
| dimension | No | 2d | |
| node_path | Yes | ||
| one_way_collision | No |