# Stairs move and down

**URL:** <https://forum.babylonjs.com/t/stairs-move-and-down/14000>\
**Category:** Questions\
**Created:** [September 8, 2020, 12:12pm UTC](https://forum.babylonjs.com/t/stairs-move-and-down/14000 "2020-09-08T12:12:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![REX\_DUNGEUR](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/rex_dungeur/32/17559_2.png) [@REX\_DUNGEUR](https://forum.babylonjs.com/u/REX_DUNGEUR)\
**Post date:** [September 8, 2020, 12:12pm UTC](https://forum.babylonjs.com/t/stairs-move-and-down/14000/1 "2020-09-08T12:12:18Z")

</div>

Hi guys!

In the moment I’m working at my project NoWay a 3D game. But I have a problem. I have build stairs but I can’t move the stairs up or down. I tried everything, but nothing works.

Could someone help me? I really nead help…  
Bye  
_ **Rex Dungeur** _

---

<div class="post-metadata">

**Author:** ![Vinc3r](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vinc3r/32/25340_2.png) [@Vinc3r](https://forum.babylonjs.com/u/Vinc3r)\
**Post date:** [September 8, 2020, 1:17pm UTC](https://forum.babylonjs.com/t/stairs-move-and-down/14000/2 "2020-09-08T13:17:56Z")

</div>

You should post a screenshot of your scene so we can know a little bit more about your setup.

Probably the easiest way to avoid issue in stairs is to create a collision mesh like this:  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/4/4d7cdb75afc56968cb7baa9f4bdbe993950e61f4.jpeg)

---

<div class="post-metadata">

**Author:** ![REX\_DUNGEUR](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/rex_dungeur/32/17559_2.png) [@REX\_DUNGEUR](https://forum.babylonjs.com/u/REX_DUNGEUR)\
**Post date:** [September 8, 2020, 1:27pm UTC](https://forum.babylonjs.com/t/stairs-move-and-down/14000/3 "2020-09-08T13:27:18Z")

</div>

nice way but it’s very strange when I go the stairs down…

 ![Screenshot from 2020-09-08 14-07-35](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/1/192386debb17be2cc8d83be1814871c56c33d724.png)

---

<div class="post-metadata">

**Author:** ![REX\_DUNGEUR](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/rex_dungeur/32/17559_2.png) [@REX\_DUNGEUR](https://forum.babylonjs.com/u/REX_DUNGEUR)\
**Post date:** [September 8, 2020, 1:28pm UTC](https://forum.babylonjs.com/t/stairs-move-and-down/14000/4 "2020-09-08T13:28:48Z")

</div>

…because I will slide the stairs down.

---

<div class="post-metadata">

**Author:** ![Wingnut](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/wingnut/32/53_2.png) [@Wingnut](https://forum.babylonjs.com/u/Wingnut)\
**Post date:** [September 9, 2020, 1:35am UTC](https://forum.babylonjs.com/t/stairs-move-and-down/14000/6 "2020-09-09T01:35:03Z")

</div>

Hi girls!  
I found [a stairs playground](https://www.babylonjs-playground.com/#PVAC9F#4) by @splash27 … works pretty good. (arrows or wasd keys)

It uses handy FPS (first person shooter) collision system… built-into BJS and freeCam.

If you need third-person view instead, you would make test boxPlayer (any mesh)… and set its _checkCollisions_ true. Then move the boxPlayer up/down the stairs… via boxPlayer.[moveWithCollisions()](https://doc.babylonjs.com/playground/?code=moveWithCollisions) operations.

anymesh.moveWithCollisions() is VERY different… and sometimes challenging. 😉

Hint. For third person view (perhaps with follow-cam)… maybe make boxPlayer.ellipsoid be small on X/Z, but tall on Y. If boxPlayer.ellipsoid is too fat… player could “slide down stairs”… depending on z-depth/tread-depth of each stair-step.

Generally speaking, turn off ALL collision-stuff upon (any) camera… for 3rd person view. boxPlayer gets all the collision stuff… but not .applyGravity. When using boxPlayer.moveWithCollisions() to move mesh on stairs… you must code your own gravity effects. (not very difficult)

Too much to explain at this point, Rex. 🙂 I just wanted to show you a non-moveWithCollisions() playground (first-person) made by a forum friend. Be well. Look for others to comment, and maybe a friendly forum helper will make a third person PG version for us… and show us. 😉

---

<div class="post-metadata">

**Author:** ![REX\_DUNGEUR](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/rex_dungeur/32/17559_2.png) [@REX\_DUNGEUR](https://forum.babylonjs.com/u/REX_DUNGEUR)\
**Post date:** [September 9, 2020, 12:00pm UTC](https://forum.babylonjs.com/t/stairs-move-and-down/14000/7 "2020-09-09T12:00:59Z")

</div>

Thank you very much! 😁

---

<div class="post-metadata">

**Author:** ![REX\_DUNGEUR](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/rex_dungeur/32/17559_2.png) [@REX\_DUNGEUR](https://forum.babylonjs.com/u/REX_DUNGEUR)\
**Post date:** [December 18, 2020, 4:37pm UTC](https://forum.babylonjs.com/t/stairs-move-and-down/14000/8 "2020-12-18T16:37:18Z")

</div>

Oh sorry @Wingnut, but I want that the cameraspeed is by 2.  
But thanks for helping me!
