A lib for creating destruction in a 2D ground using squares and parallelepipeds.
Recreate the polygon collider of an object based on impacts.
The lib implements a class that uses a linked list to track all the impacts positions in the object. Every time that the object receive an impact, this position is set to a ordened place inside the linked list.
After doing this, the class create an array of vectors that can be used by the polygon collider to recreate the polygon format of the object.
For now, the lib can handle with square and parallelepiped ground formats. Also, just create square and parallelepiped destruction in the ground. Besides that, the lib can't handle with increasing of the "holes" in the object. Can you contribute with this project? Send a PR (:
- be able to get the pivot position of the impact created
- be able to increase the size of some hole when a impact is detected on the area of a previus impact
Can you contribute?