- Home /
Ignore collider in rigidbody
Ok, I know that a rigidbody normally takes into account all the colliders that are child objects to it; how would i make it so it made exceptions/ aka. ignored a certain collider when doing physics so it has no influence on the rest of the rigidbody?
Answer by Thom Denick · Jun 26, 2011 at 06:05 PM
You want to use Layer Based Collision Detection. You can read more about it here: http://unity3d.com/support/documentation/Components/Layer%20Based%20Collision%20detection.html
But that does not cancel out the collider affecting the overall rigidbody.
As Agustin noted below your question is very confusing. $$anonymous$$y guess is you need to restructure your object so that what are currently children are not children. Can you tell us exactly what you are trying to do and possibly provide screenshots? As it is now, it sounds like you have created your object's hierarchy incorrectly.
Answer by Agustin Petrini · Jun 26, 2011 at 06:05 PM
Mmhm is playing with ignore layers and the ignore matrix is not an option, the only solution that comes into my mind is to work on the GameObject hierarchy so the ignored collider ends up not being a child of the rigidbody.
Yeah.. but that's a problem.. it needs to be/ that's the only way it will work :S!
Your answer
Follow this Question
Related Questions
Ignore Collider 0 Answers
Capsule Collider on Cylinder Doesn't Work 2 Answers
How to stop an object from moving rigidbody 1 Answer
Camera Rigidbody 1 Answer