Avoid a bettercharacter control to push another

Hi. I have two players with character controls and one is inmobile, when i move the other one and it goes above the inmobile one , it pushes it (when the riggidbody of the moving one hits the other). How can i avoid this to happen? What i want is the moving one to stop when it hits the inmobile one.

THanks to all!!

Sorry , also i would like to knowhow can i “lock” a charactercontrol so it can only move along the “X” axis , couse when it receives a force(hitting another charactercontrols riggid body) it moves algo along the Y or Z axis.