when I fully constrain my walls in the rigidbody the player goes straight through the wall

in my 2d game there is no gravity and i dont want any object rotating. when i fully constrain my walls in the rigidbody inspector view my player just passes through the wall. how do you stop this from happening and what is the reason for this?

The walls shouldn’t be rigidbodies, you’ll need just the collider for them. Also set them to Static for a better performance.