setup_collision
Add a CollisionShape2D or CollisionShape3D with a specified shape to a parent physics body node, enabling collision setup for Godot scenes.
Instructions
Add a CollisionShape3D/2D with a given shape to a 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": {
"node_path": "<node_path>"
},
"name": "setup_collision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_path | Yes | Parent physics body node path | |
| properties | No | Shape property overrides | |
| shape_type | No | Shape class (BoxShape3D, SphereShape3D, etc.) |