create_collision_polygon
Add a CollisionPolygon2D node to a Godot scene using an array of [x,y] points to define collision boundaries for physics objects.
Instructions
Create CollisionPolygon2D.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Node name | CollisionPolygon2D |
| points | Yes | Array of [x, y] points (e.g. [[0,0], [100,0], [100,50], [0,50]]) | |
| scene_path | Yes | Path to .tscn scene file | |
| parent_path | No | Parent node path (usually a StaticBody2D or Area2D) | . |