# How to step up any distance

**URL:** <https://forum.babylonjs.com/t/how-to-step-up-any-distance/14253>\
**Category:** Questions\
**Created:** [September 18, 2020, 2:39am UTC](https://forum.babylonjs.com/t/how-to-step-up-any-distance/14253 "2020-09-18T02:39:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BoldBigflank](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/boldbigflank/32/4426_2.png) [@BoldBigflank](https://forum.babylonjs.com/u/BoldBigflank)\
**Post date:** [September 18, 2020, 2:39am UTC](https://forum.babylonjs.com/t/how-to-step-up-any-distance/14253/1 "2020-09-18T02:39:11Z")

</div>

> **[Babylon.js Playground](https://www.babylonjs-playground.com/#QAN9X5)**

  
If you try to move forward, rather than step up the small step, you are shot backward. Is there any way to say “changes in height less than 0.25 units cause you to move up them”?

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [September 18, 2020, 9:45am UTC](https://forum.babylonjs.com/t/how-to-step-up-any-distance/14253/2 "2020-09-18T09:45:50Z")

</div>

Yes! It’s supposed to already work like that out of the box! It is very much related to your speed and the velocity in which you enter the collision. This is how we support climbing stairs in (for example) the esplit demo. I wonder what is off in this demo. It seems to be an example that should simply work.  
I do agree that the throwback seems a bit too excessive. I won’t be able to check it in the next few days, but if you want to submit an investigation ticket on github, I will do it when I find the time.

---

<div class="post-metadata">

**Author:** ![BoldBigflank](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/boldbigflank/32/4426_2.png) [@BoldBigflank](https://forum.babylonjs.com/u/BoldBigflank)\
**Post date:** [October 31, 2020, 6:39pm UTC](https://forum.babylonjs.com/t/how-to-step-up-any-distance/14253/3 "2020-10-31T18:39:47Z")

</div>

Still happens, so I added a Github Issue

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [November 2, 2020, 11:58pm UTC](https://forum.babylonjs.com/t/how-to-step-up-any-distance/14253/4 "2020-11-02T23:58:07Z")

</div>

It is actually mostly because of the shape of the ellipsoid  
I change it to be more “human” and I also reduce the gravity:  
[https://www.babylonjs-playground.com/#QAN9X5#1](https://www.babylonjs-playground.com/#QAN9X5#1)

you also have to look forward because the camera will go toward where you look by default and if you look at the ground it will required more energy to step up

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [November 3, 2020, 8:10am UTC](https://forum.babylonjs.com/t/how-to-step-up-any-distance/14253/5 "2020-11-03T08:10:17Z")

</div>

This is usually the case with collisions - gravity too high/speed too low/ellipsoid doesn’t fit the scenario.

This is not a bug as this is how the system should work. Maybe for 5.0 we can improve the stepping-up algorithm to support minimum configurable step size? We could change the ticket to a feature request for 5.0
