Cinemachine jitter when rotating target

Hello,

I have been trying to make camera follow my player smoothly with both my own script, and cinemachine but it’s always jittery. I have reduced the problem to following example, this is my setup:



Rotator script is just this:

using UnityEngine;

public class Rotator : MonoBehaviour
{
    void Update()
    {
        transform.Rotate(Vector3.up, 150 * Time.deltaTime, Space.Self);
    }
}

4968194--483797--cinemachine jitter4.gif

Try hard locking body to target in the body settings.

No jittering but I need the smoothing…

It’s because of an unsteady frame rate. Try changing your script to animate in FixedUpdate() instead of Update().

Thanks a lot that fixed it.

1 Like