Update v1.2.0 - Dynamic Mouse Cut System
Godot Polygon 2D Fracture System » Devlog
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
- New SimplifyLine Code (Ramer-Douglas-Peucker algorithm -> thanks to https://thecodingtrain.com/CodingChallenges/152-rdp-algorithm.html) added to PolygonLib.gd
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
Godot Polygon 2D Fracture System
2 scripts for fracturing 2D polygons in the Godot Engine 3.2+ & 4.2+.
Status | Released |
Category | Tool |
Author | Dave Green |
Tags | 2D, Destruction, fracture, Godot, polygon |
More posts
- Godot Polygon Fracture 2.0 ReleaseJun 27, 2024
- Update v1.4.0 - Polygon Restoring & SupershapesMay 25, 2021
- Update v1.3.0 - Point Fracture and Texture SystemApr 15, 2021
- Godot Polygon2D Fracture - Cutting Update (v1.1.0)Apr 04, 2021
Leave a comment
Log in with itch.io to leave a comment.