I’m very confused here.
I followed this files implementation of Server Auth Client Predictive Netcode
and my camera jitters (And the player when turning a little)
I feel it is because the code will only execute every tick
private void Update()
{
while (networkTimer.ShouldTick())
{
HandleClientTick();
HandleServerTick();
}
}
Is this a problem with cinemachine? I need my look vector to move smoothly but it jumps a lot because of the tick rate correct?
Maybe someone can help me debug this but I am not sure how I can do server auth looking around at a good smooth speed.
The video may be hard to tell but looking around is very choppy and not smooth.
I send both the move and look vectors to my Move function
Vector2 moveInput = controls.Player.Movement.ReadValue<Vector2>();
Vector2 lookInput = controls.Player.Mouse.ReadValue<Vector2>();
LookInputPayload inputPayload = new LookInputPayload()
{
tick = currentTick,
timestamp = DateTime.Now,
networkObjectId = NetworkObjectId,
inputVector = moveInput,
lookVector = lookInput,
position = transform.position
};