示例#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);
 }
示例#2
0
 public static void WritePlaneHalf(ref UdpBitStream stream, Plane plane)
 {
     UdpBitStreamExt.WriteVector3Half(ref stream, plane.normal);
     stream.WriteHalf(plane.distance);
 }
示例#3
0
 public static void WriteRayHalf(ref UdpBitStream stream, Ray ray)
 {
     UdpBitStreamExt.WriteVector3Half(ref stream, ray.origin);
     UdpBitStreamExt.WriteVector3Half(ref stream, ray.direction);
 }
示例#4
0
 public static void WriteBoundsHalf(ref UdpBitStream stream, Bounds b)
 {
     UdpBitStreamExt.WriteVector3Half(ref stream, b.center);
     UdpBitStreamExt.WriteVector3Half(ref stream, b.size);
 }
示例#5
0
 public static void WriteTransformHalf(ref UdpBitStream stream, Transform transform)
 {
     UdpBitStreamExt.WriteVector3Half(ref stream, transform.position);
     UdpBitStreamExt.WriteQuaternionHalf(ref stream, transform.rotation);
 }