setup_collision
Attach a CollisionShape2D/3D to a physics body or Area. Use built-in shapes with custom sizes for 2D (pixels) or 3D (metres).
Instructions
Add a CollisionShape2D/3D child holding a built shape resource to a physics body or Area; 2D sizes are in pixels, 3D in metres
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ax | No | ||
| ay | No | ||
| bx | No | ||
| by | No | ||
| name | No | CollisionShape | |
| depth | No | ||
| shape | Yes | ||
| width | No | ||
| height | No | ||
| points | No | ||
| radius | No | ||
| disabled | No | ||
| dimension | No | 2d | |
| node_path | Yes | ||
| one_way_collision | No |