How to go on the steps when we have a collisions in free camera

hello everyone

I have a free camera and I have three steps with collisions, I want to know how can I go on the steps?

here is my PG: https://playground.babylonjs.com/#TZ07Q6#1

1 Like

Here is the PG - https://playground.babylonjs.com/#TZ07Q6#2
I made camera.ellipsoid a bit taller
Also there is camera.ellipsoidOffset property which you may tune according you needs.
I also added camera controls WASD+Space.

Another way of dealing with stairs (and similar) collisions is to create invisible angled planes to cover the stairs and avoid such collisions.

3 Likes

Hey @labris , Thank you so much for your explanation. :slightly_smiling_face:

2 Likes