set_collision_shape
Assign a collision shape to an existing CollisionShape node in a Godot scene by specifying scene path, node path, and shape type. Optionally provide a .tres resource file for the shape.
Instructions
Set collision shape for CollisionShape node.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_path | Yes | Parent node path (e.g. "Player" — the CollisionShape3D must already exist as child) | |
| scene_path | Yes | Path to .tscn file | |
| shape_type | Yes | Collision shape type | |
| shape_resource_path | No | Path to .tres resource file for the shape (e.g. "res://shapes/player_capsule.tres"). Creates one if omitted. |