Mesh Shattering script for Unity

This is a script that I wrote for a fighting game prototype. I wanted to add some more visual emphasis to attacks, so I wrote this script to shatter meshes under force. The script uses Voronoi Diagrams and Delaunay triangulation to split rectangular meshes into smaller chunks. I then apply force to those chunks to send them flying. The script also rebuilds the mesh after a while, so the players can continue destroying the environment. The fighting game framework was also created by me. It is a full fighting game state machine that I designed to emulate games like "Super Smash Bros".

Mesh Shatter gif
Mesh Shatter Snapshot
Mesh Shatter Snapshot