Break object apart

Hi all,

I have an object created in Blender I wish to break apart on a collision.
I’m not sure of the best way to do this. Should I create separate models for each element of the object and then swap those for the ‘real’ object and hence have control to break it apart. Or is there some way in Unity to reference individual ‘objects’ within an object (presumably somehow defined in Blender ; though I don’t know how)?

Cheers

There’s something in the asset store called Piecemaker that will let you take a mesh and break it into pieces. You can have it pre-calculate the breakup (for best performance), or I think you can slice things in real time.

I’d use that, personally.

If I -had- to do it on my own, I’d model the pieces in Blender and then break them apart as needed in Unity. I think it’d be a lot tougher, though.

if you use Blender yourself, you can build a hierachy for your object, combined of multiple meshes. These will, when exported correctly, stay in this hierachy inside Unity. But each object is then a GameObject and by using “child” functions you can access them all, change their postions, rotations, materials, colors, … anything.

If you need to “explode” them away from each other, then just parent them all to a “ground zero”, by scripting when the explosion happends. If you also add physics, you can do the explosion very easy too by adding the components by scripts too.

I’m late but the best way to do this is animation