- Home /
Question by
xAdamQ · Jan 18, 2017 at 12:38 PM ·
rigidbodyboxcolliderissues
Issue with rigidbody2D?
Hi, I have a sprite with a child has BoxCollider2D when I use OnMouse Events on the child to move it's parent works correctly, but I decided to add rigidbody to the parent with no BoxCollider2D Now the parent takes behavior as if it has BoxCollider and the child don't ! Why?
Comment
Answer by FortisVenaliter · Jan 18, 2017 at 07:12 PM
Rigidbodies consider all child colliders to be part of the rigidbody. That's what allows for complex colliders. If you don't want that behaviour, you need to remove the rigidbody component, or change the parent/child relationship.