Update v1.3.0 - Point Fracture and Texture System
Features
- Point Fracture System
Originally I wanted to do a more sophisticated point fracture system but it always turned out to be a complicated mess. Finally I figured out a simpler way with using the already implemented Cut-Fracture system. I added a func to generate a randomized polygon and with a point (like a collision point), this randomized polygon can be used in the cut fracture method.
- Texture System
Polygons with applied textures can now be cut. Texture properties of the source polygon are updated and transferred to the final shape and fracture shards.
Improvements
- Polygon Lib transform clean up -> polygonLib.gd now uses transforms instead of positions and rotations.
- Polygon Lib no longer rotates the source polygon to match the source node's rotation. Now the cut shape is transformed to the local space of the source polygon and the final spawned body is rotated/scaled like the source node.
- Fracture Shard(Polygon2d) implemented as an alternative to Fracture Bodies (Rigibody2d). Fracture Shards a simple fake rigidbodies for adding a nice visual effect without using the physics system.
Cleanup
- General code clean-up.
- Comments added for newly added functions.
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
Get Godot Polygon 2D Fracture System
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.2.0 - Dynamic Mouse Cut SystemApr 08, 2021
- Godot Polygon2D Fracture - Cutting Update (v1.1.0)Apr 04, 2021
Comments
Log in with itch.io to leave a comment.
Arkanoid? Terraria without Voxels? Rampage with freely destructible cities? I can't even begin to imagine what will become possible with this :)
I hope a lot :D