- Point Fracture
- Cut Method
- Fracturing Methods
- Delaunay System
- Cut Line System
- Copy the contents of the repository in your Godot Project
Two simple scripts for fracturing and cutting polygons. PolygonFracture.gd is the actual script that fractures/cuts polygons. PolygonLib.gd adds nice helper functions for polygons like calculateArea, triangulate, getRandomPointsInPolygon, getBoundingRect, makeCirclePolygon, etc.
The final scripts are located in the polygon2d-fracture folder. The demo project is located in the demo folder.
The pool manager script added in [Update v1.2.0] is just a bonus. You can use it as is or use it as inspiration for your own pooling system 🙂
You can download/play the demo on itch.io.