- Home /
 
 
               Question by 
               csgeorge · Oct 14, 2017 at 10:38 PM · 
                2dcollisionphysics2dcollision2dboxcollider2d  
              
 
              Box Collider 2d Not Colliding
I've set up a simple 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?
               Comment
              
 
               
              Your answer