public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name             = des.ReadStringPointer(br);
     m_simulationMesh   = des.ReadClassPointer <hclSimulationSetupMesh>(br);
     m_applyToParticles = new hclVertexSelectionInput();
     m_applyToParticles.Read(des, br);
     m_stiffness = new hclVertexFloatInput();
     m_stiffness.Read(des, br);
     m_influenceParticles = new hclVertexSelectionInput();
     m_influenceParticles.Read(des, br);
     m_particleWeights = new hclVertexFloatInput();
     m_particleWeights.Read(des, br);
 }
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name                    = des.ReadStringPointer(br);
     m_simulationMesh          = des.ReadClassPointer <hclSimulationSetupMesh>(br);
     m_transformSetSetup       = des.ReadClassPointer <hclTransformSetSetupObject>(br);
     m_perParticlePlanes       = des.ReadClassArray <hclBonePlanesSetupObjectPerParticlePlane>(br);
     m_globalPlanes            = des.ReadClassArray <hclBonePlanesSetupObjectGlobalPlane>(br);
     m_perParticleAngle        = des.ReadClassArray <hclBonePlanesSetupObjectPerParticleAngle>(br);
     m_angleSpecifiedInDegrees = br.ReadBoolean();
     br.ReadUInt32();
     br.ReadUInt16();
     br.ReadByte();
 }
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name            = des.ReadStringPointer(br);
     m_simulationMesh  = des.ReadClassPointer <hclSimulationSetupMesh>(br);
     m_vertexSelection = new hclVertexSelectionInput();
     m_vertexSelection.Read(des, br);
     m_bendStiffness = new hclVertexFloatInput();
     m_bendStiffness.Read(des, br);
     m_useRestPoseConfig = br.ReadBoolean();
     br.ReadUInt32();
     br.ReadUInt16();
     br.ReadByte();
 }
Esempio n. 4
0
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name            = des.ReadStringPointer(br);
     m_simulationMesh  = des.ReadClassPointer <hclSimulationSetupMesh>(br);
     m_vertexSelection = new hclVertexSelectionInput();
     m_vertexSelection.Read(des, br);
     m_toAnimDelay = new hclVertexFloatInput();
     m_toAnimDelay.Read(des, br);
     m_toSimDelay = new hclVertexFloatInput();
     m_toSimDelay.Read(des, br);
     m_toSimMaxDistance = new hclVertexFloatInput();
     m_toSimMaxDistance.Read(des, br);
     m_toAnimPeriod         = br.ReadSingle();
     m_toSimPeriod          = br.ReadSingle();
     m_referenceBufferSetup = des.ReadClassPointer <hclBufferSetupObject>(br);
 }
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name                = des.ReadStringPointer(br);
     m_simulationMesh      = des.ReadClassPointer <hclSimulationSetupMesh>(br);
     m_createStandardLinks = br.ReadBoolean();
     br.ReadUInt32();
     br.ReadUInt16();
     br.ReadByte();
     m_vertexSelection = new hclVertexSelectionInput();
     m_vertexSelection.Read(des, br);
     m_bendStiffness = new hclVertexFloatInput();
     m_bendStiffness.Read(des, br);
     m_stretchStiffness = new hclVertexFloatInput();
     m_stretchStiffness.Read(des, br);
     m_flatnessFactor = new hclVertexFloatInput();
     m_flatnessFactor.Read(des, br);
 }
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name            = des.ReadStringPointer(br);
     m_simulationMesh  = des.ReadClassPointer <hclSimulationSetupMesh>(br);
     m_vertexSelection = new hclVertexSelectionInput();
     m_vertexSelection.Read(des, br);
     m_edgeSelection = new hclEdgeSelectionInput();
     m_edgeSelection.Read(des, br);
     m_ignoreHiddenEdges = br.ReadBoolean();
     br.ReadUInt32();
     br.ReadUInt16();
     br.ReadByte();
     m_stiffness = new hclVertexFloatInput();
     m_stiffness.Read(des, br);
     m_allowedCompression = new hclVertexFloatInput();
     m_allowedCompression.Read(des, br);
     m_allowedStretching = new hclVertexFloatInput();
     m_allowedStretching.Read(des, br);
 }
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name                 = des.ReadStringPointer(br);
     m_simulationMesh       = des.ReadClassPointer <hclSimulationSetupMesh>(br);
     m_referenceBufferSetup = des.ReadClassPointer <hclBufferSetupObject>(br);
     m_vertexSelection      = new hclVertexSelectionInput();
     m_vertexSelection.Read(des, br);
     m_maximumDistance = new hclVertexFloatInput();
     m_maximumDistance.Read(des, br);
     m_minNormalDistance = new hclVertexFloatInput();
     m_minNormalDistance.Read(des, br);
     m_maxNormalDistance = new hclVertexFloatInput();
     m_maxNormalDistance.Read(des, br);
     m_stiffness            = br.ReadSingle();
     m_localRangeShape      = (ShapeType)br.ReadUInt32();
     m_useMinNormalDistance = br.ReadBoolean();
     m_useMaxNormalDistance = br.ReadBoolean();
     br.ReadUInt32();
     br.ReadUInt16();
 }
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name                      = des.ReadStringPointer(br);
     m_simulationMesh            = des.ReadClassPointer <hclSimulationSetupMesh>(br);
     m_movableParticlesSelection = new hclVertexSelectionInput();
     m_movableParticlesSelection.Read(des, br);
     m_fixedParticlesSelection = new hclVertexSelectionInput();
     m_fixedParticlesSelection.Read(des, br);
     m_rigidFactor = new hclVertexFloatInput();
     m_rigidFactor.Read(des, br);
     m_stiffness = new hclVertexFloatInput();
     m_stiffness.Read(des, br);
     m_stretchDirection              = des.ReadVector4(br);
     m_useStretchDirection           = br.ReadBoolean();
     m_useMeshTopology               = br.ReadBoolean();
     m_allowDynamicLinks             = br.ReadBoolean();
     m_useTopologicalStretchDistance = br.ReadBoolean();
     br.ReadUInt64();
     br.ReadUInt32();
 }
Esempio n. 9
0
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name                   = des.ReadStringPointer(br);
     m_simulationMesh         = des.ReadClassPointer <hclSimulationSetupMesh>(br);
     m_collidableTransformSet = des.ReadClassPointer <hclTransformSetSetupObject>(br);
     br.ReadUInt64();
     m_gravity = des.ReadVector4(br);
     m_globalDampingPerSecond = br.ReadSingle();
     m_doNormals      = br.ReadBoolean();
     m_specifyDensity = br.ReadBoolean();
     br.ReadUInt16();
     m_vertexDensity = new hclVertexFloatInput();
     m_vertexDensity.Read(des, br);
     m_rescaleMass = br.ReadBoolean();
     br.ReadUInt16();
     br.ReadByte();
     m_totalMass    = br.ReadSingle();
     m_particleMass = new hclVertexFloatInput();
     m_particleMass.Read(des, br);
     m_particleRadius = new hclVertexFloatInput();
     m_particleRadius.Read(des, br);
     m_particleFriction = new hclVertexFloatInput();
     m_particleFriction.Read(des, br);
     m_fixedParticles = new hclVertexSelectionInput();
     m_fixedParticles.Read(des, br);
     m_enablePinchDetection = br.ReadBoolean();
     br.ReadUInt32();
     br.ReadUInt16();
     br.ReadByte();
     m_pinchDetectionEnabledParticles = new hclVertexSelectionInput();
     m_pinchDetectionEnabledParticles.Read(des, br);
     m_toAnimPeriod = br.ReadSingle();
     m_toSimPeriod  = br.ReadSingle();
     m_drivePinchedParticlesToReferenceMesh = br.ReadBoolean();
     br.ReadUInt32();
     br.ReadUInt16();
     br.ReadByte();
     m_pinchReferenceBufferSetup = des.ReadClassPointer <hclBufferSetupObject>(br);
     m_collisionTolerance        = br.ReadSingle();
     br.ReadUInt32();
     m_landscapeCollisionParticleSelection = new hclVertexSelectionInput();
     m_landscapeCollisionParticleSelection.Read(des, br);
     m_landscapeCollisionParticleRadius = br.ReadSingle();
     m_enableStuckParticleDetection     = br.ReadBoolean();
     br.ReadUInt16();
     br.ReadByte();
     m_stuckParticlesStretchFactor     = br.ReadSingle();
     m_enableLandscapePinchDetection   = br.ReadBoolean();
     m_landscapePinchDetectionPriority = br.ReadSByte();
     br.ReadUInt16();
     m_landscapePinchDetectionRadius = br.ReadSingle();
     m_enableTransferMotion          = br.ReadBoolean();
     br.ReadUInt16();
     br.ReadByte();
     m_transferMotionSetupData = new hclSimClothSetupObjectTransferMotionSetupData();
     m_transferMotionSetupData.Read(des, br);
     m_constraintSetSetups    = des.ReadClassPointerArray <hclConstraintSetSetupObject>(br);
     m_perInstanceCollidables = des.ReadClassArray <hclSimClothSetupObjectPerInstanceCollidable>(br);
     br.ReadUInt64();
 }