collision_set_layers
Set collision layer and mask bitmasks for a CollisionObject node to manage collision detection in Godot.
Instructions
Configure collision layers and masks for a CollisionObject node.
Category: Collision
Args: project_path: Path to the Godot project directory scene_path: Path to the scene file (relative to project) node_path: Path to the CollisionObject node collision_layer: Collision layer bitmask (which layers this object is on) collision_mask: Collision mask bitmask (which layers this object can collide with)
Returns: Success message or error description
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| scene_path | Yes | ||
| node_path | Yes | ||
| collision_layer | No | ||
| collision_mask | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |