DestructiblePolygon2D 1.0.0 Scripts 3.5 Community
Submitted by user Julian-Vos; MIT; 2024-04-01
A node for free-form destruction (and creation) of polygonal terrain. Define the initial terrain with Polygon2D children, then call destruct on it to erase a polygonal area. Exported properties:
- collidable (if true, the node is collidable as a static body in layer 1)
- free_when_empty (if true, the node is freed automatically when destructed completely)
- simplification (vertices are deleted if they are less than this number of pixels away from both adjacent vertices)
View files Download Submit an issue Recent Edits