Exemple #1
0
 void SyncPositionValues(Vector3 latestPos)
 {
     syncPos = latestPos;
     if (!PlayerNetworkSetup.IsLocal())
     {
         syncPosList.Add(syncPos);
     }
 }
Exemple #2
0
 void LerpPosition()
 {
     if (!PlayerNetworkSetup.IsLocal())
     {
         if (useHistoricLerping)
         {
             HistoricalLerping();
         }
         else
         {
             OrdinaryLerping();
         }
     }
 }
Exemple #3
0
 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();
         }
     }
 }