So that we have smoother reaction time we will start simulating movement on client side right away, but as soon as server confirms movement, we must sync the movement to the same one as on server-side.
Rules:
If we have a HIGH(ex. >=100ms of movement) deviation we just teleport the character to server coordinates
If the deviation is LOW(ex. <100ms of movement) we perform linear interpolation on the character to get more smooth movement.
So that we have smoother reaction time we will start simulating movement on client side right away, but as soon as server confirms movement, we must sync the movement to the same one as on server-side. Rules: