moveWithCollisions will go up on the steps, how to stop it?

My role height 3, and i hope He can automatically go up on the steps which height is under 1.

Hi @Tidus, moveWithCollisions uses an ellipsoid collider for the mesh you’re moving (Camera Collisions | Babylon.js Documentation). So if your steps are not tall enough compared to the ellipsoid, your mesh will move up the steps

Some ways to work around this are to increase your step height or to use a physics engine (Using A Physics Engine | Babylon.js Documentation) with BoxImpostors for your character and steps

2 Likes