Ejemplo n.º 1
0
 public void SyncRotation(NetVector3 rot)
 {
     transform.rotation = Quaternion.Euler(rot.Get());
 }
Ejemplo n.º 2
0
 public void SyncVelocity(NetVector3 v)
 {
     GetComponent<Rigidbody>().velocity = v.Get();
 }
Ejemplo n.º 3
0
 public void SyncPosition(NetVector3 pos)
 {
     transform.position = pos.Get();
 }
Ejemplo n.º 4
0
 public void SyncAngularVelocity(NetVector3 av)
 {
     GetComponent<Rigidbody>().angularVelocity = av.Get();
 }
Ejemplo n.º 5
0
 public GameModelData()
 {
     pos    = new NetVector3(0, 0, 0);
     rotate = new NetVector3(0, 0, 0);
 }
Ejemplo n.º 6
0
 public ActorMoveDirection()
 {
     direction = new NetVector3(0, 0, 0);
 }
Ejemplo n.º 7
0
 public PlaneFormula(NetVector3 point1, NetVector3 point2, NetVector3 point3)
 {
 }