예제 #1
0
 public void SyncVelocity(NetVector3 v)
 {
     GetComponent<Rigidbody>().velocity = v.Get();
 }
예제 #2
0
 public void SyncPosition(NetVector3 pos)
 {
     transform.position = pos.Get();
 }
예제 #3
0
 public void SyncRotation(NetVector3 rot)
 {
     transform.rotation = Quaternion.Euler(rot.Get());
 }
예제 #4
0
 public void SyncAngularVelocity(NetVector3 av)
 {
     GetComponent<Rigidbody>().angularVelocity = av.Get();
 }