/// <summary> /// Encodes PRTransform to given GameBitBuffer. /// </summary> /// <param name="buffer">The GameBitBuffer to write.</param> public void Encode(GameBitBuffer buffer) { Quaternion.Encode(buffer); Vector3D.Encode(buffer); }
/// <summary> /// Encodes Quaternion to given GameBitBuffer. /// </summary> /// <param name="buffer">The GameBitBuffer to write.</param> public void Encode(GameBitBuffer buffer) { buffer.WriteFloat32(W); Vector3D.Encode(buffer); }
/// <summary> /// Encodes AABB to given GameBitBuffer. /// </summary> /// <param name="buffer">The GameBitBuffer to write.</param> public void Encode(GameBitBuffer buffer) { Min.Encode(buffer); Max.Encode(buffer); }