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

Why Godot?

in godot

How I met with Godot?

I do not really remember when it is, maybe January 2015 that was my first time I’ve found Godot. At that time, I’ve been joined open source community named Doscom (Dinus Open Source Community) and Doscom held a workshop about game development. So I’m the one who focussed on game development has a job to teaching.
Continue reading

  • page 1 of 1
Author's picture

Damar Indra

damarind@gmail.com


Game Developer, Programmer, Artist


Indonesia