- Home /
Collider not stoping the object second time
Hi! I've attached a box collider & rigid body to two objects, first name character which has a rigid body "is Kinematic" no checked, other object name is table rigid body "is Kinematic" checked. while both have attached a box collider. Problem is when character collides with the table first time it is stopped, but second time it passes through it. what I am missing here?
Answer by Zubair1714 · May 15, 2014 at 07:37 AM
While it turns out that I was missing something. In the collider setting by default in 2D game settings Z component is 0, which was causing the problem, after setting a suitable value for the Z, collision detection works just fine.
0 is also a suitable value for Z position. You just have to make sure that all 2D objects with collider have the same Z position. Also make sure that you are using Physics2D colliders and rigidbodies.
Your answer
Follow this Question
Related Questions
Advice for Intersecting Colliders 0 Answers
Sprites doens't collide properly or bypass each other 0 Answers
How do I grab an object without going through it? 0 Answers
Kinematic Rigidbody Collider not colliding with Static Trigger Collider 3 Answers
Preventing objects from intersecting with minimal physics 3 Answers