Some frames, it moves before the player does.

The problem
Following in Update.
public class FollowCam : MonoBehaviour{ public Transform target; public Vector3 offset = new( 0, 5, -8 ); void Update() { transform.position = target.position + offset; }}
Unity doesn't promise which Update runs first. If the camera goes first, it copies where the player was last frame.
Why it jitters
A frame behind is a moving gap.
When the camera lags a frame, the gap is one frame of movement, and that changes every frame.
- Player moves first
- camera lands on it
- Camera moves first
- one frame behind
- Frame times vary
- the gap shakes
The fix
Move the camera last.
LateUpdate runs after every Update has finished, so the player has always moved by then.
every Update→LateUpdate→the frame is drawn
The fix in code
One word.
void LateUpdate(){ transform.position = target.position + offset;}
Same line, later in the frame. The gap is the same every frame now.
Watch out
Still shaking? Check the physics.
A Rigidbody moves on the physics clock, so the target itself can stutter. Interpolate it.
- Moved in Update
- LateUpdate fixes it
- Moved by physics
- also interpolate the body
The rule
Cameras follow in LateUpdate.
- Game logic
- Update
- Follow the result
- LateUpdate
- Physics target
- interpolate it