Exemplo n.º 1
0
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_isEnabled = br.ReadBoolean();
     m_motorAxis = br.ReadByte();
     br.ReadUInt32();
     m_targetPosition = br.ReadSingle();
     br.ReadUInt32();
     m_motor = des.ReadClassPointer <hkpConstraintMotor>(br);
 }
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_isEnabled = br.ReadBoolean();
     br.ReadUInt64();
     br.ReadUInt32();
     br.ReadByte();
     m_target_bRca = des.ReadMatrix3(br);
     m_motors_0    = des.ReadClassPointer <hkpConstraintMotor>(br);
     m_motors_1    = des.ReadClassPointer <hkpConstraintMotor>(br);
     m_motors_2    = des.ReadClassPointer <hkpConstraintMotor>(br);
     br.ReadUInt64();
 }
Exemplo n.º 3
0
 public virtual void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     m_pivotInA     = des.ReadVector4(br);
     m_pivotInB     = des.ReadVector4(br);
     m_aTc          = des.ReadQuaternion(br);
     m_bTc          = des.ReadQuaternion(br);
     m_motors_0     = des.ReadClassPointer <hkpConstraintMotor>(br);
     m_motors_1     = des.ReadClassPointer <hkpConstraintMotor>(br);
     m_motors_2     = des.ReadClassPointer <hkpConstraintMotor>(br);
     m_switchBodies = br.ReadBoolean();
     br.ReadUInt32();
     br.ReadUInt16();
     br.ReadByte();
 }