Basically I have a pixelated creature made up of these cubes and when hit by a bullet I want them to fall apart. So heres the code I wrote but for some reason it does not work.
You can loop through all the children in the object's hierarchy and unparent them and give them all colliders and rigidbodies.
do something like this:
answered Aug 09 '10 at 11:35 AM
Is the OnTriggerEnter() method even triggered? Try putting a Debug.Log("blah") in there to be sure...
Do you have a collider on the character? Is it set as a trigger collider?
Is there a RigidBody component on the bullets or the character?
More info will help :)
answered Aug 09 '10 at 12:24 PM