Fix player jitter on moving platforms
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
/// Procedural platform animation supporting translation, rotation, and scaling.
|
||||
/// Supports multiple animation types (Constant, PingPong, Loop, Single) with easing.
|
||||
/// </summary>
|
||||
[DefaultExecutionOrder(0)]
|
||||
public class ProceduralAnimator : MonoBehaviour
|
||||
{
|
||||
public enum AnimationSpace
|
||||
@@ -89,7 +90,7 @@ public class ProceduralAnimator : MonoBehaviour
|
||||
_state.IsFinished = false;
|
||||
}
|
||||
|
||||
void LateUpdate()
|
||||
void Update()
|
||||
{
|
||||
if (_state.IsFinished)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user