Collisions between objects from different layers with uncgecked collisions in matrix?

Hello. As a training I try to repeat some lessons from Unity Learn in my 2D Clone of Space Invaders. So I tried to restrain player’s movement by adding to the background’s object collider and getting coordinates of it’s boundaries, but meet the problem, that collider of background pushes the player out of boundaries at the start of game. Well, I learn a bit of material about layers, so I made a specific layer “background”, in which put the background object, while other object, taking part in the game leave at the layer “default”. Also in collision matrix I uncheck collisions between background and default layers, but the problem with pushing player out of background continues
So, what is wrong, can anyone told, please?

Collision matrix:


Background layer

Look at your first image. Can you see the specific Physic2D section there? You’re not using that, you’re using 3D physics.

2 Likes