Implemented a kind of friction with objects the player is standing on.