- Home /
Prevent physics judder in an elevator/moving vertical platform?
Simple(ish) question I hope.
Player (or prop) has a rigidbody. Enters an elevator, with movement driven by the animator.
Is there a reliable way to prevent the physics micro-judder from the RB constantly falling/colliding with the floor of the elevator, without constraining the control of the player, or adjusting fixed time scale?
Answer by wolfenswan · Dec 05, 2020 at 03:11 PM
An easy/hacky solution might be to make the entity a child of the platform, as for example described here.
If that doesn't work: Have you tried using MoveTowards to move the Object alongside the platform while it's touching it? That worked for me when I ran into a similar issue with moving platforms. The player can still move freely but as long as they touch the platform (or rather, the slightly larger trigger-collider) they'll also be moved according to its speed.
Your answer

Follow this Question
Related Questions
Question regarding character controllers and slopes 0 Answers
2D 360 degress platformer example needed 0 Answers
Rigidbody physics behaving differently from editor to build 0 Answers
Character Controller's performance for massive groups 0 Answers
Can someone please explain Character Controller use? 1 Answer