- Home /
No Collision in 2d Scene
I've set up a simple 2d game scene with sprites for a character and some walls. I've attached a simple movement script to the character, and a Box Collider 2d to each object. But when I move the character into a wall, there is no collision. They just go through each other. I tried attaching a Rigidbody2d to the character, but that only makes a difference if the Rigidbody is set to Dynamic. If it is Kinematic or Static, the character will continue to pass through walls.
Is this the way it should be? Because it doesn't seem right. Am I missing some kind of setting on the Box Collider 2d? I don't want dynamic physics, I just want to be able to detect collision and for sprites to not pass through each other. Is that possible?
Your answer
Follow this Question
Related Questions
Boxcollider2d sinks into Ground when falling on a non straight surface 0 Answers
How can a character not move out of box collider's bounds? 1 Answer
Collision detection not working properly with 2D sprites 1 Answer
Is there a way for 2D Box Colliders to ignore another? 4 Answers
How can I combine many BoxCollider2D into one Collider? 2 Answers