set_shape_points
Set polygon points, circle radius, or rectangle extents on CollisionShape2D or CollisionPolygon2D nodes to define collision shapes in Godot scenes.
Instructions
Set shape on CollisionShape2D.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | No | Points for polygon shapes | |
| radius | No | Radius for circle/capsule shapes | |
| extents | No | [width, height] for rectangle shapes | |
| node_path | Yes | Node path to CollisionShape2D or CollisionPolygon2D | |
| scene_path | Yes | Path to .tscn scene file | |
| shape_type | No | Shape type (for CollisionShape2D) |