What is Jitter Movement?

When your camera and object movement is not sync each other, the movement you see will be stop, move, stop, in fast speed. It’s hard to explain, but I’m sure if you have this problem, you will now if that was jittering!

How to fix it?

It’s quite simple! You need to call camera update position right after player movement.

For example if you are using Unity, your character movement is on Update function, you can call your camera update position function on the LateUpdate function. But, if you are using FixedUpdate for the character movement, you need to call the camera movement right after your character moved, which is inside the FixedUpdate.

1
2
3
4
5
6
7
8
9
10
11
12
char.cs
Camera cam;
void FixedUpdate(){
YouNeedToMove();
cam.UpdateMovement();
}
cam.cs
public void UpdateMovement(){
DoWhateverYouWant_Cam();
}

Yep, that was the illustration.

Comment and share

  • page 1 of 1
Author's picture

Damar Indra

damarind@gmail.com


Game Developer, Programmer, Artist


Indonesia