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 WriteTransformHalf(ref UdpBitStream stream, Transform transform) { UdpBitStreamExt.WriteVector3Half(ref stream, transform.position); UdpBitStreamExt.WriteQuaternionHalf(ref stream, transform.rotation); }