コード例 #1
0
 void FixedUpdate()
 {
     if (!photonView.isMine)
     {
         myRB.velocity        = myPred.CompVel(transform.position, netPos, netVel);
         myRB.angularVelocity = myPred.CompRotVel(transform.rotation, Quaternion.Euler(myPred.PredictRot(netRot.eulerAngles, netAngVel, netAngAccel, tDelta)), netAngVel) * Mathf.Deg2Rad;
     }
 }