- Home /
Unity 2D: Box Collider Not Working
I turned on Box Collider 2D for the 2D player but the player is still going through objects.
Is there any way to stop this?
If I need to use code, I'm using C#.
Thanks
the collider2D should not be trigger ,check this,also other objects should have a collider2D .
It's not on trigger and the other objects have a collider 2D.
your Rigidbody2D component is not dynamic??? ,you should use Rigidbody2D component,then this problem will be solved , let us see your code :)
Collider issues are difficult to diagnose as there are several reasons why they might not be working as you'd like. The best bet you'll have of getting assistance is to paste screenshots of your physics collision matrix, player character and its components, and the same for the object you're falling through.
Your answer
![](https://koobas.hobune.stream/wayback/20220612152747im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Animation is not playing all frames 0 Answers
How to have a grid detect which square a player is in, in unity 2D 1 Answer
My RigidBody2D+BoxCollider2D is getting stuck on corners 1 Answer
2D poker Chip Animations (Similar to Zynga) 1 Answer
2D player keeps getting dragged to the left for some reason. 0 Answers