- Home /
Elevator that parents player to itself causes jittery motion.
I have an elevator that moves using transform.Translate(). It had a problem where when going down, the player would fall towards the elevator, stop and then the elevator would outrun the player again and so the cycle continued all the way down.
In order to solve this I've made it so that the player gets parented to the elevator when you enter it's surface. Now the problem is gone, but there's a new one - the movement is jittery.
How can I solve this?
The player is a CharacterController btw.
Answer by FortisVenaliter · Oct 05, 2017 at 07:04 PM
Many games disable locomotion when parented to an elevator like this. That way the transform is driven only by the parent.
The jitteriness is caused by the CharacterController thinking it's still an independent entity. You probably want to disable it when in the elevator. There's usually not much point to walking around in an elevator anyway.
Well those are open doom-like elevators, so not really an option.
Your answer
Follow this Question
Related Questions
Aircraft Control 1 Answer
Move Character Controller 0 Answers
Rigidbody step offset 1 Answer
How to make rigidbody addforce locally 1 Answer
FPS Character Controller with the push DOWN rigidbodies ability 0 Answers