- Home /
Box and circle Collider doesn't work
I created two game object.
One is box and the other one is a ball. Then I added collider to them to collision them. But it's not working. I searched on the internet and looked for possible solutions and they didn't work.
*Is trigger unchecked. *Attached rigidbody2d to the ball.
Any help will be appreciated. Thanks for your interest
Answer by xxmariofer · Oct 28, 2020 at 02:56 PM
one needs to be a rigidbody to trigger collision events
As I mentioned above I already set rigidbody2d component to the ball game object.
Box colliders need rigid body not rigid body 2d, but if that's not the issue, share the code that you use to get the collision events, if both objects have colliders and atleast one a rigid body the issue is something else, like, not attaching the mlnlbehaviour class to the objects that collide (atleast one) or maybe you have edit the physics configuration setting the fixed delta time to 0 or really high or you have edited the collision matrix layer, is imposible to know with those details
Thanks for your interest. I just restarted the Unity and it's fixed ??? How could it be possible ?
Your answer
Follow this Question
Related Questions
Check Object Is Not Colliding 2 Answers
Detecting collision of two game objects? 0 Answers
How to stop my sword from hitting myself 2 Answers
There seems to be a collider when there shouldn't be 1 Answer