Example #1
0
 public static Ray ReadRayHalf(ref UdpBitStream stream)
 {
     return(new Ray(
                UdpBitStreamExt.ReadVector3Half(ref stream),
                UdpBitStreamExt.ReadVector3Half(ref stream)
                ));
 }
Example #2
0
 public static Plane ReadPlaneHalf(ref UdpBitStream stream)
 {
     return(new Plane(
                UdpBitStreamExt.ReadVector3Half(ref stream),
                stream.ReadHalf()
                ));
 }
Example #3
0
 public static void ReadRigidbodyHalf(ref UdpBitStream stream, out Vector3 position, out Quaternion rotation, out Vector3 velocity, out Vector3 angularVelocity)
 {
     position        = UdpBitStreamExt.ReadVector3Half(ref stream);
     rotation        = UdpBitStreamExt.ReadQuaternionHalf(ref stream);
     velocity        = UdpBitStreamExt.ReadVector3Half(ref stream);
     angularVelocity = UdpBitStreamExt.ReadVector3Half(ref stream);
 }
Example #4
0
 public static void ReadRigidbodyHalf(ref UdpBitStream stream, Rigidbody rigidbody)
 {
     rigidbody.position        = UdpBitStreamExt.ReadVector3Half(ref stream);
     rigidbody.rotation        = UdpBitStreamExt.ReadQuaternionHalf(ref stream);
     rigidbody.velocity        = UdpBitStreamExt.ReadVector3Half(ref stream);
     rigidbody.angularVelocity = UdpBitStreamExt.ReadVector3Half(ref stream);
 }
Example #5
0
 public static Bounds ReadBoundsHalf(ref UdpBitStream stream)
 {
     return(new Bounds(UdpBitStreamExt.ReadVector3Half(ref stream), UdpBitStreamExt.ReadVector3Half(ref stream)));
 }
Example #6
0
 public static void ReadTransformHalf(ref UdpBitStream stream, out Vector3 position, out Quaternion rotation)
 {
     position = UdpBitStreamExt.ReadVector3Half(ref stream);
     rotation = UdpBitStreamExt.ReadQuaternionHalf(ref stream);
 }
Example #7
0
 public static void ReadTransformHalf(ref UdpBitStream stream, Transform transform)
 {
     transform.position = UdpBitStreamExt.ReadVector3Half(ref stream);
     transform.rotation = UdpBitStreamExt.ReadQuaternionHalf(ref stream);
 }