Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Exploding Voxels

$
0
0
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

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>