void SyncPositionValues(Vector3 latestPos) { syncPos = latestPos; if (!PlayerNetworkSetup.IsLocal()) { syncPosList.Add(syncPos); } }
void LerpPosition() { if (!PlayerNetworkSetup.IsLocal()) { if (useHistoricLerping) { HistoricalLerping(); } else { OrdinaryLerping(); } } }
void LerpRotations() { //playerTransform.rotation = Quaternion.Lerp(playerTransform.rotation, syncPlayerRotation, Time.deltaTime * lerpRate); //camTransform.rotation = Quaternion.Lerp(camTransform.rotation, syncCamRotation, Time.deltaTime * lerpRate); if (!PlayerNetworkSetup.IsLocal()) { if (useHistoricalInterpolation) { HistoricalInterpolation(); } else { OrdinaryLerping(); } } }