set_collision_layer_mask
Set collision layers and masks on physics nodes to control which objects interact. Use layer numbers (1-32) or raw bitmask values.
Instructions
Set collision layer and/or mask on a physics node. Accepts layer numbers (1-32) as array or raw bitmask.
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 |
|---|---|---|---|
| nodePath | Yes | Path to the physics node | |
| scenePath | Yes | Path to the scene file (relative to project) | |
| projectPath | Yes | Path to the Godot project directory | |
| collisionMask | No | Array of mask numbers [1,2,3] or raw bitmask integer | |
| collisionLayer | No | Array of layer numbers [1,2,3] or raw bitmask integer |