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.
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 |