I’m making a top-down 2D game in Unity right now and I’m trying to get it so my player is prevented from moving past a wall. I have attached a rigidbody2D and a Box Collider to both the walls and my player, but there is still no collision (or really any sign of any physics working at all). The rigidbody on my player is kinematic and the rigidbodies on my walls are dynamic (with gravity set to 0). The walls and the player are on the same layer (“Default”). What do I need to do to get these collisions working?
Here is my player’s inspector window (above).
Here is the inspector window for my walls (above).