- Home /
Create a compound collider (beginner)
Hi,
I would like my enemy to fall down on the side if the player collides with the enemy's arm for example, so if the player is in front and on the right compared to the enemy, when they collide the enemy should fall to the left, at the opposite side, so that it looks realistic.
I am just starting with Unity, i have seen the compound collider, is it the best way to do this? If so, how would you put several colliders on a character? The documentation says : "multiple primitive Colliders as child GameObjects", i am not sure to understand how to do this? For example if i add a sphere for the head, there will be a sphere attached to my character, is there a way to make it invisible?
Thanks for your answer
Answer by Paul36 · Sep 06, 2012 at 12:54 PM
Ok i found out how to do this with this thread : http://answers.unity3d.com/answers/314062/view.html
Answer by Tranz.Z · Jul 27, 2013 at 08:51 AM
In the Inspector of the child GameObject, disable Mesh Renderer.