set_collision_layer_mask
Sets collision layer and mask on physics bodies or areas to define which physics layers interact. Useful for fine-tuning collision detection in Godot scenes.
Instructions
Set collision layer and mask on a physics body or area. Controls which physics layers interact.
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>"
},
"name": "set_collision_layer_mask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the Godot project directory | |
| scenePath | Yes | Scene file path | |
| nodePath | Yes | Path to the physics body/area node | |
| layer | No | Collision layer bitmask value | |
| mask | No | Collision mask bitmask value |