public override void Write(PackFileSerializer s, BinaryWriterEx bw) { base.Write(s, bw); bw.WriteUInt64(0); bw.WriteUInt32(0); bw.WriteUInt16(0); s.WriteMatrix3(bw, m_rotationA); s.WriteMatrix3(bw, m_rotationB); }
public override void Write(PackFileSerializer s, BinaryWriterEx bw) { base.Write(s, bw); s.WriteVector4(bw, m_gravity); bw.WriteSByte(m_numWheels); bw.WriteUInt64(0); bw.WriteUInt32(0); bw.WriteUInt16(0); bw.WriteByte(0); s.WriteMatrix3(bw, m_chassisOrientation); bw.WriteSingle(m_torqueRollFactor); bw.WriteSingle(m_torquePitchFactor); bw.WriteSingle(m_torqueYawFactor); bw.WriteSingle(m_extraTorqueFactor); bw.WriteSingle(m_maxVelocityForPositionalFriction); bw.WriteSingle(m_chassisUnitInertiaYaw); bw.WriteSingle(m_chassisUnitInertiaRoll); bw.WriteSingle(m_chassisUnitInertiaPitch); bw.WriteSingle(m_frictionEqualizer); bw.WriteSingle(m_normalClippingAngleCos); bw.WriteSingle(m_maxFrictionSolverMassRatio); bw.WriteUInt32(0); s.WriteClassArray <hknpVehicleDataWheelComponentParams>(bw, m_wheelParams); s.WriteSByteArray(bw, m_numWheelsPerAxle); m_frictionDescription.Write(s, bw); s.WriteVector4(bw, m_chassisFrictionInertiaInvDiag); bw.WriteBoolean(m_alreadyInitialised); bw.WriteUInt64(0); bw.WriteUInt32(0); bw.WriteUInt16(0); bw.WriteByte(0); }
public virtual void Write(PackFileSerializer s, BinaryWriterEx bw) { bw.WriteSingle(m_volume); bw.WriteSingle(m_mass); bw.WriteUInt64(0); s.WriteVector4(bw, m_centerOfMass); s.WriteMatrix3(bw, m_inertiaTensor); }
public override void Write(PackFileSerializer s, BinaryWriterEx bw) { base.Write(s, bw); bw.WriteBoolean(m_isEnabled); bw.WriteUInt64(0); bw.WriteUInt32(0); bw.WriteByte(0); s.WriteMatrix3(bw, m_target_bRca); s.WriteClassPointer <hkpConstraintMotor>(bw, m_motors_0); s.WriteClassPointer <hkpConstraintMotor>(bw, m_motors_1); s.WriteClassPointer <hkpConstraintMotor>(bw, m_motors_2); bw.WriteUInt64(0); }
public override void Write(PackFileSerializer s, BinaryWriterEx bw) { base.Write(s, bw); s.WriteStringPointer(bw, m_modeller); s.WriteStringPointer(bw, m_asset); bw.WriteSingle(m_sceneLength); bw.WriteUInt32(m_numFrames); s.WriteClassPointer <hkxNode>(bw, m_rootNode); s.WriteClassPointerArray <hkxNodeSelectionSet>(bw, m_selectionSets); s.WriteClassPointerArray <hkxCamera>(bw, m_cameras); s.WriteClassPointerArray <hkxLight>(bw, m_lights); bw.WriteUInt64(0); bw.WriteUInt64(0); s.WriteClassPointerArray <hkxMaterial>(bw, m_materials); s.WriteClassPointerArray <hkxTextureInplace>(bw, m_inplaceTextures); s.WriteClassPointerArray <hkxTextureFile>(bw, m_externalTextures); s.WriteClassPointerArray <hkxSkinBinding>(bw, m_skinBindings); s.WriteClassPointerArray <hkxSpline>(bw, m_splines); s.WriteMatrix3(bw, m_appliedTransform); }