Ejemplo n.º 1
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt32(m_collisionFilterInfo);
     bw.WriteUInt32(0);
     s.WriteClassPointer <hknpShape>(bw, m_shape);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     s.WriteVector4(bw, m_position);
     s.WriteQuaternion(bw, m_orientation);
     bw.WriteSingle(m_mass);
     bw.WriteSingle(m_dynamicFriction);
     bw.WriteSingle(m_staticFriction);
     bw.WriteSingle(m_weldingTolerance);
     bw.WriteUInt32(m_reservedBodyId);
     bw.WriteByte(m_additionMode);
     bw.WriteByte(m_additionFlags);
     bw.WriteUInt64(0);
     bw.WriteUInt16(0);
     s.WriteVector4(bw, m_up);
     bw.WriteSingle(m_maxSlope);
     bw.WriteSingle(m_maxForce);
     bw.WriteSingle(m_maxSpeedForSimplexSolver);
     bw.WriteSingle(m_supportDistance);
     bw.WriteSingle(m_hardSupportDistance);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
 }
Ejemplo n.º 2
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(m_userData);
     bw.WriteUInt64(0);
     s.WriteVector4(bw, m_position);
     s.WriteVector4(bw, m_forward);
     s.WriteVector4(bw, m_velocity);
     s.WriteVector4(bw, m_up);
     bw.WriteUInt32(m_currentNavMeshFace);
     bw.WriteSingle(m_radius);
     bw.WriteSingle(m_desiredSpeed);
     m_adaptiveRanger.Write(s, bw);
     s.WriteClassPointer <hkaiAstarCostModifier>(bw, m_costModifier);
     s.WriteClassPointer <hkaiAstarEdgeFilter>(bw, m_edgeFilter);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt32(m_agentFilterInfo);
     bw.WriteUInt32(0);
     s.WriteClassPointer <hkaiAvoidanceProperties>(bw, m_avoidanceProperties);
     bw.WriteSingle(m_avoidanceState);
     bw.WriteUInt32(m_agentPriority);
     bw.WriteUInt16(m_avoidanceType);
     bw.WriteByte(m_avoidanceEnabledMask);
     bw.WriteByte(0);
     bw.WriteInt32((int)m_state);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt32(m_layer);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(0);
     s.WriteVector4(bw, m_targetWS);
     s.WriteVector4(bw, m_headForwardLS);
     s.WriteVector4(bw, m_neckForwardLS);
     s.WriteVector4(bw, m_neckRightLS);
     s.WriteVector4(bw, m_eyePositionHS);
     bw.WriteSingle(m_newTargetGain);
     bw.WriteSingle(m_onGain);
     bw.WriteSingle(m_offGain);
     bw.WriteSingle(m_limitAngleDegrees);
     bw.WriteSingle(m_limitAngleLeft);
     bw.WriteSingle(m_limitAngleRight);
     bw.WriteSingle(m_limitAngleUp);
     bw.WriteSingle(m_limitAngleDown);
     bw.WriteInt16(m_headIndex);
     bw.WriteInt16(m_neckIndex);
     bw.WriteBoolean(m_isOn);
     bw.WriteBoolean(m_individualLimitsOn);
     bw.WriteBoolean(m_isTargetInsideLimitCone);
     bw.WriteByte(0);
     bw.WriteInt16(m_SensingAngle);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(0);
     s.WriteVector4(bw, m_vertexA);
     s.WriteVector4(bw, m_vertexB);
 }
Ejemplo n.º 5
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteStringPointer(bw, m_name);
     s.WriteClassArray <hkxMaterialTextureStage>(bw, m_stages);
     bw.WriteUInt64(0);
     s.WriteVector4(bw, m_diffuseColor);
     s.WriteVector4(bw, m_ambientColor);
     s.WriteVector4(bw, m_specularColor);
     s.WriteVector4(bw, m_emissiveColor);
     s.WriteClassPointerArray <hkxMaterial>(bw, m_subMaterials);
     s.WriteClassPointer <hkReferencedObject>(bw, m_extraData);
     bw.WriteSingle(m_uvMapScale_0);
     bw.WriteSingle(m_uvMapScale_1);
     bw.WriteSingle(m_uvMapOffset_0);
     bw.WriteSingle(m_uvMapOffset_1);
     bw.WriteSingle(m_uvMapRotation);
     bw.WriteUInt32((uint)m_uvMapAlgorithm);
     bw.WriteSingle(m_specularMultiplier);
     bw.WriteSingle(m_specularExponent);
     bw.WriteByte((byte)m_transparency);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     bw.WriteUInt64(m_userData);
     s.WriteClassArray <hkxMaterialProperty>(bw, m_properties);
     bw.WriteUInt64(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteVector4(bw, m_position);
     s.WriteQuaternion(bw, m_orientation);
     s.WriteVector4(bw, m_velocity);
     bw.WriteSingle(m_dynamicFriction);
     bw.WriteSingle(m_staticFriction);
     bw.WriteSingle(m_keepContactTolerance);
     bw.WriteUInt32(0);
     s.WriteVector4(bw, m_up);
     s.WriteClassPointer <hknpShape>(bw, m_shape);
     bw.WriteUInt64(m_userData);
     bw.WriteUInt64(0);
     bw.WriteUInt32(m_collisionFilterInfo);
     bw.WriteSingle(m_keepDistance);
     bw.WriteSingle(m_contactAngleSensitivity);
     bw.WriteUInt32(m_userPlanes);
     bw.WriteSingle(m_maxCharacterSpeedForSolver);
     bw.WriteSingle(m_characterStrength);
     bw.WriteSingle(m_characterMass);
     bw.WriteSingle(m_maxSlope);
     bw.WriteSingle(m_penetrationRecoverySpeed);
     bw.WriteInt32(m_maxCastIterations);
     bw.WriteBoolean(m_refreshManifoldInCheckSupport);
     bw.WriteBoolean(m_presenceInWorld);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
 }
Ejemplo n.º 7
0
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     m_contactPoint.Write(s, bw);
     bw.WriteSingle(m_contactFriction);
     bw.WriteUInt32(0);
     bw.WriteUInt32(m_contactShapeKey);
     bw.WriteUInt32(0);
     s.WriteVector4(bw, m_hardPointWs);
     s.WriteVector4(bw, m_rayEndPointWs);
     bw.WriteSingle(m_currentSuspensionLength);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     s.WriteVector4(bw, m_suspensionDirectionWs);
     s.WriteVector4(bw, m_spinAxisChassisSpace);
     s.WriteVector4(bw, m_spinAxisWs);
     s.WriteQuaternion(bw, m_steeringOrientationChassisSpace);
     bw.WriteSingle(m_spinVelocity);
     bw.WriteSingle(m_noSlipIdealSpinVelocity);
     bw.WriteSingle(m_spinAngle);
     bw.WriteSingle(m_skidEnergyDensity);
     bw.WriteSingle(m_sideForce);
     bw.WriteSingle(m_forwardSlipVelocity);
     bw.WriteSingle(m_sideSlipVelocity);
     bw.WriteUInt32(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteVector4(bw, m_position);
     s.WriteVector4(bw, m_velocity);
     bw.WriteSingle(m_dynamicFriction);
     bw.WriteSingle(m_staticFriction);
     bw.WriteSingle(m_keepContactTolerance);
     bw.WriteUInt32(0);
     s.WriteVector4(bw, m_up);
     bw.WriteSingle(m_extraUpStaticFriction);
     bw.WriteSingle(m_extraDownStaticFriction);
     s.WriteClassPointer <hkpShapePhantom>(bw, m_shapePhantom);
     bw.WriteSingle(m_keepDistance);
     bw.WriteSingle(m_contactAngleSensitivity);
     bw.WriteUInt32(m_userPlanes);
     bw.WriteSingle(m_maxCharacterSpeedForSolver);
     bw.WriteSingle(m_characterStrength);
     bw.WriteSingle(m_characterMass);
     bw.WriteSingle(m_maxSlope);
     bw.WriteSingle(m_penetrationRecoverySpeed);
     bw.WriteInt32(m_maxCastIterations);
     bw.WriteBoolean(m_refreshManifoldInCheckSupport);
     bw.WriteUInt64(0);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
 }
Ejemplo n.º 9
0
 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 override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(0);
     m_atoms.Write(s, bw);
     s.WriteVector4(bw, m_initialAxleInB);
     s.WriteVector4(bw, m_initialSteeringAxisInB);
 }
Ejemplo n.º 11
0
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteVector4(bw, m_hardpointChassisSpace);
     s.WriteVector4(bw, m_directionChassisSpace);
     bw.WriteSingle(m_length);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
 }
Ejemplo n.º 12
0
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteVector4(bw, m_centerOfMass0);
     s.WriteVector4(bw, m_centerOfMass1);
     s.WriteQuaternion(bw, m_rotation0);
     s.WriteQuaternion(bw, m_rotation1);
     s.WriteVector4(bw, m_centerOfMassLocal);
 }
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteVector4(bw, m_pivotInA);
     s.WriteVector4(bw, m_pivotInB);
     bw.WriteSingle(m_springLength);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
 }
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteVector4(bw, m_localPosition);
     s.WriteVector4(bw, m_localNormal);
     bw.WriteUInt16(m_triangleIndex);
     bw.WriteUInt16(0);
     bw.WriteSingle(m_weight);
     bw.WriteUInt64(0);
 }
Ejemplo n.º 15
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     s.WriteVector4(bw, m_translationA);
     s.WriteVector4(bw, m_translationB);
 }
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteVector4(bw, m_targetOrSensingPosition);
     s.WriteVector4(bw, m_targetBackHandNormal);
     bw.WriteSingle(m_sensingRadius);
     bw.WriteInt16(m_boneIndex);
     bw.WriteInt16(m_handIkTrackIndex);
     bw.WriteUInt64(0);
 }
Ejemplo n.º 17
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(0);
     s.WriteVector4(bw, m_rotationAxis);
     s.WriteVector4(bw, m_upAxis);
     bw.WriteSingle(m_strength);
     bw.WriteSingle(m_damping);
     bw.WriteUInt64(0);
 }
Ejemplo n.º 18
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteVector4(bw, m_point_0);
     s.WriteVector4(bw, m_point_1);
     bw.WriteSingle(m_strength);
     bw.WriteSingle(m_damping);
     bw.WriteUInt64(0);
     s.WriteVector4(bw, m_impulse);
 }
Ejemplo n.º 19
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteSingle(m_cylRadius);
     bw.WriteSingle(m_cylBaseRadiusFactorForHeightFieldCollisions);
     s.WriteVector4(bw, m_vertexA);
     s.WriteVector4(bw, m_vertexB);
     s.WriteVector4(bw, m_perpendicular1);
     s.WriteVector4(bw, m_perpendicular2);
 }
Ejemplo n.º 20
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(0);
     s.WriteVector4(bw, m_start);
     s.WriteVector4(bw, m_end);
     s.WriteVector4(bw, m_dir);
     bw.WriteSingle(m_radius);
     bw.WriteSingle(m_capLenSqrdInv);
     bw.WriteUInt64(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteByte((byte)m_space);
     bw.WriteByte((byte)m_projectMethod);
     bw.WriteUInt16(0);
     bw.WriteSingle(m_maxVelocityScale);
     bw.WriteUInt64(0);
     s.WriteVector4(bw, m_velocityMeasurePlane);
     s.WriteVector4(bw, m_velocity);
 }
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteVector4(bw, m_position);
     s.WriteVector4(bw, m_normal);
     bw.WriteUInt32(m_userEdgeData);
     bw.WriteInt32(m_sectionId);
     bw.WriteByte(m_flags);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
 }
Ejemplo n.º 23
0
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteVector4(bw, m_position);
     s.WriteVector4(bw, m_tangentIn);
     s.WriteVector4(bw, m_tangentOut);
     bw.WriteByte((byte)m_inType);
     bw.WriteByte((byte)m_outType);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
 }
Ejemplo n.º 24
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(0);
     s.WriteVector4(bw, m_up);
     s.WriteVector4(bw, m_forward);
     bw.WriteSingle(m_duration);
     bw.WriteUInt32(0);
     s.WriteVector4Array(bw, m_referenceFrameSamples);
     bw.WriteUInt64(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteVector4(bw, m_dampedVector);
     s.WriteVector4(bw, m_vecErrorSum);
     s.WriteVector4(bw, m_vecPreviousError);
     bw.WriteSingle(m_dampedValue);
     bw.WriteSingle(m_errorSum);
     bw.WriteSingle(m_previousError);
     bw.WriteUInt32(0);
 }
Ejemplo n.º 26
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteBoolean(m_velocityIsLocalSpace);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
     s.WriteVector4(bw, m_pivot);
     s.WriteVector4(bw, m_angularVelocity);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt16(m_weldingInfo);
     bw.WriteByte((byte)m_weldingType);
     bw.WriteByte(m_isExtruded);
     bw.WriteUInt32(0);
     s.WriteVector4(bw, m_vertexA);
     s.WriteVector4(bw, m_vertexB);
     s.WriteVector4(bw, m_vertexC);
     s.WriteVector4(bw, m_extrusion);
 }
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteStringPointer(bw, m_transformName);
     m_particlesMaxAngle.Write(s, bw);
     m_particlesMinAngle.Write(s, bw);
     bw.WriteUInt64(0);
     s.WriteVector4(bw, m_originBoneSpace);
     s.WriteVector4(bw, m_axisBoneSpace);
     m_minAngle.Write(s, bw);
     m_maxAngle.Write(s, bw);
     m_stiffness.Write(s, bw);
 }
Ejemplo n.º 29
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     s.WriteVector4(bw, m_fixedPivotAinWorld);
     s.WriteVector4(bw, m_fixedPivotBinWorld);
     bw.WriteSingle(m_ropeLength);
     bw.WriteSingle(m_leverageOnBodyB);
     bw.WriteUInt64(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     s.WriteVector4(bw, m_offset);
     s.WriteVector4(bw, m_yieldStrengthDiag);
     s.WriteVector4(bw, m_yieldStrengthOffDiag);
     s.WriteVector4(bw, m_ultimateStrengthDiag);
     s.WriteVector4(bw, m_ultimateStrengthOffDiag);
 }