Update v1.2.0 - Dynamic Mouse Cut System


Important Bugfixes

  • Triangle area calculation sometimes returned invalid integers causing corrupt polygons -> now fixed
  • Fracture Delaunay sometimes produced triangles "poking" outside of the source polygon shape -> now fixed


Added Functionality


Mouse Cut System Overhaul

  • Now instead of always drawing a straight line, the path of the mouse is traced, simplified, and converted into a cut shape.
  • The system to convert the cut line into a cut shape was improved
  • The input system was unified to 1 button so it works on touch screens too. (HOLD LMB for cut lines, Tap LMB for simple circle cut)


Visual Improvements

  • tweaked the glow intensity
  • added a cut shape visualizer system to see old cuts
  • outlines of fracture shards now glow white for a short period of time


Misc

  • Class clean-ups.
  • Project clean-ups.


Bonus

  • I implemented a simple pool manager script for handling "fracture bodies" and "cut shape visualizer". You can use it as is or use it as inspiration for your own pooling system :)



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! 



BONUS GIF :D


Files

Polygon 2D Fracture Demo (v1.2.0) - win [newest] 12 MB
Apr 08, 2021
Polygon 2D Fracture Source (v1.2.0) [newest] 9.6 MB
Apr 08, 2021
godot-polygon2d-fracture(v1.2.0-stable)-html5.zip Play in browser
Apr 08, 2021

Get Godot Polygon 2D Fracture System

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.