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