Breakable Crates

I was wondering if anyone knew how to make crates that break apart? For example, if my character punches or throws a crate I would want that crate to break apart and then disappear. I’m using blender for this task and someone suggested modeling the crate in pieces then make an IPO animation. That sounds like a lot of work and it takes my poly count way up for a simple crate.

well I am totally new to unity but I remember reading in the manual thatthey suggest you do this…

http://unity3d.com/support/documentation/Manual/Instantiating%20Prefabs.html

look for this part of the link…
Replacing a character with a ragdoll or wreck
Let’s say you have a fully rigged enemy character and he dies. You could simply play a death animation on the character and disable all scripts that usually handle the enemy logic. You probably have to take care of removing several scripts, adding some custom logic to make sure that no one will continue attacking the dead enemy anymore, and other cleanup tasks.

A far better approach is to immediately delete the entire character and replace it with an instantiated wrecked prefab. This gives you a lot of flexibility. You could use a different material for the dead character, attach completely different scripts, spawn a Prefab containing the object broken into many pieces to simulate a shattered enemy, or simply instantiate a Prefab containing a version of the character.

Any of these options can be achieved with a single call to Instantiate(), you just have to hook it up to the right prefab and you’re set!

The important part to remember is that the wreck which you Instantiate() can be made of completely different objects than the original. For example, if you have an airplane, you would model two versions. One where the plane consists of a single GameObject with Mesh Renderer and scripts for airplane physics. By keeping the model in just one GameObject, your game will run faster since you will be able to make the model with less triangles and since it consists of fewer objects it will render faster than using many small parts. Also while your plane is happily flying around there is no reason to have it in separate parts