How can i stop the player from pushing a physics object

in Physics go to Contraints and set Mode to XY plane