I don’t know how the game done the movement. But here I press WS while in the collision the character will automatically change direction. But the amount is hard to adjust, depends on the size of the collision and the amount of turning.