Hello, I am trying to create a function that makes a voxel-based model explode.
Say, a monster is killed and now what should happen (in theory):
1. Iterate throught the mesh's triangles/vertices, and instantiate a simple cube gameobject (with rigidbody) at each voxel position (basically "replacing" a block with an instantiated cube).
2. Destroying the model, and applying outward force to all the instantiated cubes.
3. ???
4. Profit!
I haven't found any kind of information about such a...
Exploding Voxels
Say, a monster is killed and now what should happen (in theory):
1. Iterate throught the mesh's triangles/vertices, and instantiate a simple cube gameobject (with rigidbody) at each voxel position (basically "replacing" a block with an instantiated cube).
2. Destroying the model, and applying outward force to all the instantiated cubes.
3. ???
4. Profit!
I haven't found any kind of information about such a...
Exploding Voxels