Example #1
0
 public static void WriteRigidbodyHalf(ref UdpBitStream stream, Rigidbody rigidbody)
 {
     UdpBitStreamExt.WriteVector3Half(ref stream, rigidbody.position);
     UdpBitStreamExt.WriteQuaternionHalf(ref stream, rigidbody.rotation);
     UdpBitStreamExt.WriteVector3Half(ref stream, rigidbody.velocity);
     UdpBitStreamExt.WriteVector3Half(ref stream, rigidbody.angularVelocity);
 }
Example #2
0
 public static void WriteTransformHalf(ref UdpBitStream stream, Transform transform)
 {
     UdpBitStreamExt.WriteVector3Half(ref stream, transform.position);
     UdpBitStreamExt.WriteQuaternionHalf(ref stream, transform.rotation);
 }