game_add_collision
game_add_collisionAdd a collision shape to a physics body node to enable physical interactions and collision detection.
Instructions
Add a collision shape to a physics body node
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| disabled | No | Start disabled | |
| shapeType | Yes | Shape: box, sphere/circle, capsule, cylinder, ray, segment | |
| parentPath | Yes | Path to CollisionBody/Area node | |
| shapeParams | No | Shape dimensions (e.g. {radius, height}) | |
| collisionMask | No | Collision mask bitmask | |
| collisionLayer | No | Collision layer bitmask |