# Elevator???

**URL:** <https://discussions.unity.com/t/elevator/396018>\
**Category:** Asset & Content Management\
**Created:** [August 6, 2009, 3:00am UTC](https://discussions.unity.com/t/elevator/396018 "2009-08-06T03:00:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewc](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/andrewc/32/126002_2.png) [@andrewc](https://discussions.unity.com/u/andrewc)\
**Post date:** [August 6, 2009, 3:00am UTC](https://discussions.unity.com/t/elevator/396018/1 "2009-08-06T03:00:13Z")

</div>

I am trying to make an elevator using a delta time translation to move it. The problem is the player FPS prefab won’t move with it and if I try and make the elevator move up the player falls through the floor even though there are colliders.

Any Ideas?

---

<div class="post-metadata">

**Author:** ![Dreamora](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/dreamora/32/91058_2.png) [@Dreamora](https://discussions.unity.com/u/Dreamora)\
**Post date:** [August 6, 2009, 3:01am UTC](https://discussions.unity.com/t/elevator/396018/2 "2009-08-06T03:01:53Z")

</div>

detect if the player is on the elevator and if it is, make the elevator its parent.  
if you move the elevator up / down, the player will move with it automatically

---

<div class="post-metadata">

**Author:** ![andrewc](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/andrewc/32/126002_2.png) [@andrewc](https://discussions.unity.com/u/andrewc)\
**Post date:** [August 6, 2009, 3:39am UTC](https://discussions.unity.com/t/elevator/396018/3 "2009-08-06T03:39:47Z")

</div>

That doesn’t seem to work for going up. The player still falls through the floor. It does work for going down.

---

<div class="post-metadata">

**Author:** ![anon\_3358311](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@anon\_3358311](https://discussions.unity.com/u/anon_3358311)\
**Post date:** [August 6, 2009, 9:00am UTC](https://discussions.unity.com/t/elevator/396018/4 "2009-08-06T09:00:33Z")

</div>

There is actually a very good tutorial on this on the Unity 3D website. Take a look at the 2D platform game tutorial. It shows you how to do the elevator.

---

<div class="post-metadata">

**Author:** ![anon\_20701957](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@anon\_20701957](https://discussions.unity.com/u/anon_20701957)\
**Post date:** [August 6, 2009, 9:01am UTC](https://discussions.unity.com/t/elevator/396018/5 "2009-08-06T09:01:03Z")

</div>

Is this what you need? Both objects have to be rigidbodys but you can use it like translate.

> **[Unity - Scripting API: Rigidbody.MovePosition](https://docs.unity3d.com/ScriptReference/Rigidbody.MovePosition.html)**

---

<div class="post-metadata">

**Author:** ![andrewc](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/andrewc/32/126002_2.png) [@andrewc](https://discussions.unity.com/u/andrewc)\
**Post date:** [August 7, 2009, 12:48am UTC](https://discussions.unity.com/t/elevator/396018/6 "2009-08-07T00:48:54Z")

</div>

I’m just using the FPS prefab which I don’t believe has a rigid body. When the elevator moves up the player moves with it for about a second and then falls through the floor. I have the script working so that the player is a child of the elevator at the time it goes up, but it’s still not working.

---

<div class="post-metadata">

**Author:** ![anon\_33702100](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@anon\_33702100](https://discussions.unity.com/u/anon_33702100)\
**Post date:** [August 7, 2009, 7:28pm UTC](https://discussions.unity.com/t/elevator/396018/7 "2009-08-07T19:28:11Z")

</div>

I believe there is a FPS controller on the wiki that is rigidbody based. I don’t know the link but I know i’ve see it there.

---

<div class="post-metadata">

**Author:** ![anon\_24038877](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@anon\_24038877](https://discussions.unity.com/u/anon_24038877)\
**Post date:** [August 7, 2009, 9:30pm UTC](https://discussions.unity.com/t/elevator/396018/8 "2009-08-07T21:30:20Z")

</div>

> [@""](#):
>
> I believe there is a FPS controller on the wiki that is rigidbody based. I don’t know the link but I know i’ve see it there.

Here it is:

> **[unifycommunity.com - unifycommunity Resources and Information.](http://ww1.unifycommunity.com/wiki/index.php?title=RigidbodyFPSWalker&usid=18&utid=26944116493)**
>
> unifycommunity.com is your first and best source for all of the information you’re looking for. From general topics to more of what you would expect to find here, unifycommunity.com has it all. We hope you find what you are searching for!

---

<div class="post-metadata">

**Author:** ![Discord](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/discord/32/568561_2.png) [@Discord](https://discussions.unity.com/u/Discord)\
**Post date:** [August 7, 2009, 11:46pm UTC](https://discussions.unity.com/t/elevator/396018/9 "2009-08-07T23:46:50Z")

</div>

> [@""](#):
>
> > [@""](#):
> >
> > I believe there is a FPS controller on the wiki that is rigidbody based. I don’t know the link but I know i’ve see it there.
> 
> Here it is:
> 
> [http://www.unifycommunity.com/wiki/index.php?title=RigidbodyFPSWalker](http://www.unifycommunity.com/wiki/index.php?title=RigidbodyFPSWalker)

Be aware that the Rigidbody FPS Walker can climb vertical object by just walking into them and jumping continuously.
