Пример #1
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteByte((byte)m_type);
     bw.WriteByte(m_deactivationIntegrateCounter);
     bw.WriteUInt16(m_deactivationNumInactiveFrames_0);
     bw.WriteUInt16(m_deactivationNumInactiveFrames_1);
     bw.WriteUInt64(0);
     bw.WriteUInt16(0);
     m_motionState.Write(s, bw);
     s.WriteVector4(bw, m_inertiaAndMassInv);
     s.WriteVector4(bw, m_linearVelocity);
     s.WriteVector4(bw, m_angularVelocity);
     s.WriteVector4(bw, m_deactivationRefPosition_0);
     s.WriteVector4(bw, m_deactivationRefPosition_1);
     bw.WriteUInt32(m_deactivationRefOrientation_0);
     bw.WriteUInt32(m_deactivationRefOrientation_1);
     s.WriteClassPointer <hkpMaxSizeMotion>(bw, m_savedMotion);
     bw.WriteUInt16(m_savedQualityTypeIndex);
     bw.WriteInt16(m_gravityFactor);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(0);
     m_motionState.Write(s, bw);
 }