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 . ![alt text][1] [1]: /storage/temp/111420-untitled.png

Do either of those objects have a Rigidbody?

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.

1 Answer

1

Try to add Rigid body 2d to blocker object.

I did. What else?

not work for me