Godot Polygon2D Fracture - Cutting Update (v1.1.0)


It took me a while to get the cutting of rotated polygons working but now it works really nice :) The demo just shows two methods to cut polygons but basically, any polygon can cut any polygon. Scaling does not work yet, so a scale of (1,1) should be used for polygon2d nodes. I tried to make the two final scripts as simple as possible to use but some parts are probably still confusing. The demo folder in the source project contains test scenes to check out how some things are set up.


There is just one cut method. It uses 1 polygon as the source and 1 polygon as a cut shape. The intersected shape (the parts overlapping in both polygons) can be fractured if desired. I also added helper funcs to PolygonLib.gd to create simple polygon shapes (currently: rectangle, circle, beam).


I hope it helps you in your game dev endeavor :D I am going to use this system in my current game project Nomads Sky if you want to check it out in action. Please consider supporting me here on itch or on Ko-Fi if you like my work, it makes it that much easier to keep working on projects like this.


Thanks for reading!

Files

Polygon 2D Fracture Demo (v1.1.0) - win 12 MB
Apr 04, 2021
Polygon 2D Fracture Source (v1.1.0) 8 MB
Apr 04, 2021
polygon2d-fracture(v1.1.0-stable)-html5.zip 4 MB
Apr 04, 2021

Get Godot Polygon 2D Fracture System

Download NowName your own price

Comments

Log in with itch.io to leave a comment.

(1 edit)

That's exactly what I have looked for. Thanks! ;)

I am glad to hear that 👍 Thank you very much :)