Prevent character from pushing an object it's standing on?

I remember there was a way to modify the object’s weight, if you set it to an incredible high weight it shouldn’t move