- Home /
Unity 2d circle collider not stopping after collision with box collider 2d
Hello, I'm using unity circle collider 2d and rigid body 2d but when it hits the box it doesn't stop there but instead just pass through and fall. Can someone help?
Circle Collider and rigid body 2d setting
Box Collider Settings
Game output
As you can see in game output my circle instead of stopping at collision it is getting passed by box. I'm new to unity will be grateful if someone helps.
Answer by dougantor · Mar 21, 2020 at 10:19 PM
Uncheck "IsTrigger" on the box collider, or add a second box collider with "IsTrigger" unchecked if you need to use the first collider as a trigger for something else. Colliders with "IsTrigger" checked will only register OnTrigger events, and not OnCollission
Your answer
Follow this Question
Related Questions
How can I get my BoxCollider2D to stay centered on my sprite? 2 Answers
HitBox's Box Collider 2D is not following its parent Enemy sprite 0 Answers
Colliders2d not colliding, yet stoping the rigibody2d. 1 Answer
Box Collider 2D is not consitently working 0 Answers
Game Object is not working properly 0 Answers