set_physics_layers
Configure collision layer and mask bitmasks on a physics body node to control which objects collide and interact in Godot.
Instructions
Set the collision layer and mask bitmasks on 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": {
"node_path": "<node_path>"
},
"name": "set_physics_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mask | No | Collision mask bitmask | |
| layer | No | Collision layer bitmask | |
| node_path | Yes | Node path |