Maybe your Layers config are not set up in the way you think. If you search for it, you can get a surprise (Project settings -> Physics (or Physics 2D).
Nice ref