Voxel destruction

Hi, newbie here, i know this is well above my pay grade, but just wondering what i’d have to go about learning to make this possible.

I have a voxel object that i created in magicavoxel that i’d like to be destructible with another object inside being a solid core. FPS shooter. I want to have it so that shooting at the object causes the outer destructible layer to destroy voxels where projectiles hit.

Would this just be mesh slicing?

What tutorials do i read/watch on achieving this?

Thanks in advance

Yes, it is essentially “just mesh slicing,” but you also have to mend the mesh and cover over holes as well subdivide pieces if necessary.

It would be a pretty heavy lift in the generic sense, essentially writing a miniature minecraft engine that operates only on your character.

Usually destructible stuff is pre-made into chunks and then the pre-made chunks are blasted off at runtime.

1 Like

I suggest checking out the asset store and gothub if you’re new.
Stuff like marching cubes and voxel systems will be things to look for maybe
Making a destruction system (and use that actually runs with good performance) is insanely hard

1 Like

If this is just about one object you dont need voxels. Go with what Kurt suggested and pre-make some puzzle pieces that together result in your full object. When hit, disable the hit piece (or make it fly off or something) to achieve a similar effect, but with way less complexity. If you truly need a generic voxel solution, im afraid you need to tackle the whole advanced topic or pay for someone to create it for you.

1 Like

And if you want some awesome voxel inspiration, check this guys’ devlogs out:

https://twitter.com/puppygames/status/1635722923209105409

3 Likes