public bool ValidateState(VehicleState lastState, VehicleState currentState) { return((currentState.position - lastState.position).sqrMagnitude < 1000f && (currentState.ownerTimestamp - lastState.receivedOnServerTimestamp > 0.5f)); }
public bool ValidateState(VehicleState lastState, VehicleState currentState) { return((currentState.position - lastState.position).sqrMagnitude < 1000f && (currentState.ownerTimestamp - lastState.receivedOnServerTimestamp > 0.5f)); }