Escalator and FPS controler

Hallo,

I build an escalator with help of Blender, imported this and works fine.
But…
When I step on the escalator with my FPS it won’t take me upstairs. It stays on the first step and hangs there while the escalator keeps rolling.
Is there a way that I can fix this, by using a script?

Does the escalator have collision?

What is your FPS character made up of? A CharacterController?

CharacterController’s aren’t pushed around by usual physics, nor they enact force on things with normal physics. You can just change their position with ‘Move’ and they will move in that direction for that distance unless something gets in the way. You must then do any extra calculations for physics at that point.

Escalators are like ‘moving platforms’. Try googling around for tutorials on ‘unity moving platforms with CharacterController’, or something like that, you’ll get a lot of material on how to accomplish this.

I could be wrong, but I suspect will be very difficult to use the physics engine to move you up an escalator. Instead but a collider around the bottom of the escalator and the top. You then can use OnTriggerEnter to detect stepping on it, and have some Coroutine move your guy up to the top, until you detect hitting the top collider.

mmmmm, that odd.
When looking at the video on youtube at about 20.38, it seems like it has to work.

Well then did you follow this video and do exactly what it did?

Yes I did, but I made real steps

Maybe post the relevant code that should be moving your guy but isnt.

I think that I need to do just that.

Thanks for helping. :slight_smile: