Slice or fracture your polygons with this awesome SFX plugin.

Last Updategithub|SoloByte|godot-polygon2d-fracture|main
AuthorSoloByte and more
Supported Versions3.2, 3.3

Features

  • Point Fracture
  • Cut Method
  • Fracturing Methods
    • Delaunay System
    • Cut Line System
  • Restoring
    • Simple
    • Advanced

Installation

  • Copy the contents of the repository in your Godot Project

Usage

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.

License

MIT

Extra

Nothing yet. If you want to recommend a tutorial resource for this, use the suggestions page.