Hi, I have a simple object that moved along X axis and I want my camera following it.

I am using this setup to follow the cube. The cube is moved by the follow script in Update()
var position = transform.position;
position.x += 0.03f;
transform.position = position;
No matter I use which update in the brain, it still jitters.
The only way to fix this is to set the damping to 0, or use FixedUpdate for both the movement script and the brain update.
May I know what is causing this issue? Many thanks.
ren2yk
Thanks for the quick reply!
It is already using LateUpdate in the Cinemachine brain.

And actually it is the damping of the vcam causing the jitter in my case.
Do you have any advise on this matter? Thanks in advance.
Why dont you use the cinemachine for following the object?
EDIT: nvm, I thought that code was for the camera. Did you follow a guide for the cinemachine?
The movement script is wrong. It will have different result based on fps, and that’s why you may see jitter, because the movement itself is jittery.
You could multiply by Time.deltaTime to smooth the movement.
public class Move : MonoBehaviour
{
public float Speed = 3;
void Update()
{
var position = transform.position;
position.x += Speed * Time.deltaTime;
transform.position = position;
}
}
Have a look at this thread that may provide more information on the subject: https://discussions.unity.com/t/570123
The jitter is most probably not related to Cinemachine. If you’d attach your Camera (with CinemachineBrain disabled) to the Cube, you’d see jitter. If that is not the case, let me know 
Note
If you have damping, then you may see a pop, in that case call OnTargetObjectWarped on your Virtual Cameras whose target got moved.
See this thread: https://discussions.unity.com/t/689653/21
1 Like