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