public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_position             = des.ReadVector4(br);
     m_orientation          = des.ReadQuaternion(br);
     m_velocity             = des.ReadVector4(br);
     m_dynamicFriction      = br.ReadSingle();
     m_staticFriction       = br.ReadSingle();
     m_keepContactTolerance = br.ReadSingle();
     br.ReadUInt32();
     m_up       = des.ReadVector4(br);
     m_shape    = des.ReadClassPointer <hknpShape>(br);
     m_userData = br.ReadUInt64();
     br.ReadUInt64();
     m_collisionFilterInfo     = br.ReadUInt32();
     m_keepDistance            = br.ReadSingle();
     m_contactAngleSensitivity = br.ReadSingle();
     m_userPlanes = br.ReadUInt32();
     m_maxCharacterSpeedForSolver = br.ReadSingle();
     m_characterStrength          = br.ReadSingle();
     m_characterMass                 = br.ReadSingle();
     m_maxSlope                      = br.ReadSingle();
     m_penetrationRecoverySpeed      = br.ReadSingle();
     m_maxCastIterations             = br.ReadInt32();
     m_refreshManifoldInCheckSupport = br.ReadBoolean();
     m_presenceInWorld               = br.ReadBoolean();
     br.ReadUInt64();
     br.ReadUInt32();
     br.ReadUInt16();
 }
 public virtual void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     m_transform           = des.ReadTransform(br);
     m_flags               = br.ReadInt32();
     m_collisionFilterInfo = br.ReadUInt32();
     m_shape               = des.ReadClassPointer <hknpShape>(br);
     m_aabb = new hkAabb16();
     m_aabb.Read(des, br);
     m_id = br.ReadUInt32();
     m_nextAttachedBodyId = br.ReadUInt32();
     m_motionId           = br.ReadUInt32();
     m_broadPhaseId       = br.ReadUInt32();
     m_materialId         = br.ReadUInt16();
     m_qualityId          = br.ReadByte();
     m_timAngle           = br.ReadByte();
     m_maxTimDistance     = br.ReadUInt16();
     m_maxContactDistance = br.ReadUInt16();
     m_indexIntoActiveListOrDeactivatedIslandId = br.ReadUInt32();
     m_radiusOfComCenteredBoundingSphere        = br.ReadInt16();
     m_spuFlags               = br.ReadByte();
     m_shapeSizeDiv16         = br.ReadByte();
     m_motionToBodyRotation_0 = br.ReadInt16();
     m_motionToBodyRotation_1 = br.ReadInt16();
     m_motionToBodyRotation_2 = br.ReadInt16();
     m_motionToBodyRotation_3 = br.ReadInt16();
     m_userData               = br.ReadUInt64();
 }
Example #3
0
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_coreShape     = des.ReadClassPointer <hknpShape>(br);
     m_coreShapeSize = br.ReadInt32();
     br.ReadUInt32();
 }
Example #4
0
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_collisionFilterInfo = br.ReadUInt32();
     br.ReadUInt32();
     m_shape = des.ReadClassPointer <hknpShape>(br);
     br.ReadUInt64();
     br.ReadUInt64();
     m_position         = des.ReadVector4(br);
     m_orientation      = des.ReadQuaternion(br);
     m_mass             = br.ReadSingle();
     m_dynamicFriction  = br.ReadSingle();
     m_staticFriction   = br.ReadSingle();
     m_weldingTolerance = br.ReadSingle();
     m_reservedBodyId   = br.ReadUInt32();
     m_additionMode     = br.ReadByte();
     m_additionFlags    = br.ReadByte();
     br.ReadUInt64();
     br.ReadUInt16();
     m_up       = des.ReadVector4(br);
     m_maxSlope = br.ReadSingle();
     m_maxForce = br.ReadSingle();
     m_maxSpeedForSimplexSolver = br.ReadSingle();
     m_supportDistance          = br.ReadSingle();
     m_hardSupportDistance      = br.ReadSingle();
     br.ReadUInt64();
     br.ReadUInt32();
 }
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     br.ReadUInt64();
     m_shape          = des.ReadClassPointer <hknpShape>(br);
     m_shapeTransform = des.ReadTransform(br);
     m_geometry       = new hkGeometry();
     m_geometry.Read(des, br);
 }
 public virtual void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     m_aabb = new hkAabb();
     m_aabb.Read(des, br);
     m_shape = des.ReadClassPointer <hknpShape>(br);
     br.ReadUInt64();
     m_transform = des.ReadTransform(br);
     m_to        = des.ReadVector4(br);
 }
Example #7
0
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_numLevelsOfDetail = br.ReadInt32();
     m_infos_0           = new hknpLodShapeLevelOfDetailInfo();
     m_infos_0.Read(des, br);
     m_infos_1 = new hknpLodShapeLevelOfDetailInfo();
     m_infos_1.Read(des, br);
     m_infos_2 = new hknpLodShapeLevelOfDetailInfo();
     m_infos_2.Read(des, br);
     m_infos_3 = new hknpLodShapeLevelOfDetailInfo();
     m_infos_3.Read(des, br);
     m_infos_4 = new hknpLodShapeLevelOfDetailInfo();
     m_infos_4.Read(des, br);
     m_infos_5 = new hknpLodShapeLevelOfDetailInfo();
     m_infos_5.Read(des, br);
     m_infos_6 = new hknpLodShapeLevelOfDetailInfo();
     m_infos_6.Read(des, br);
     m_infos_7 = new hknpLodShapeLevelOfDetailInfo();
     m_infos_7.Read(des, br);
     br.ReadUInt32();
     m_shapes_0               = des.ReadClassPointer <hknpShape>(br);
     m_shapes_1               = des.ReadClassPointer <hknpShape>(br);
     m_shapes_2               = des.ReadClassPointer <hknpShape>(br);
     m_shapes_3               = des.ReadClassPointer <hknpShape>(br);
     m_shapes_4               = des.ReadClassPointer <hknpShape>(br);
     m_shapes_5               = des.ReadClassPointer <hknpShape>(br);
     m_shapes_6               = des.ReadClassPointer <hknpShape>(br);
     m_shapes_7               = des.ReadClassPointer <hknpShape>(br);
     m_shapesMemorySizes_0    = br.ReadUInt32();
     m_shapesMemorySizes_1    = br.ReadUInt32();
     m_shapesMemorySizes_2    = br.ReadUInt32();
     m_shapesMemorySizes_3    = br.ReadUInt32();
     m_shapesMemorySizes_4    = br.ReadUInt32();
     m_shapesMemorySizes_5    = br.ReadUInt32();
     m_shapesMemorySizes_6    = br.ReadUInt32();
     m_shapesMemorySizes_7    = br.ReadUInt32();
     m_indexCurrentShapeOnSpu = br.ReadInt32();
     br.ReadUInt32();
     m_currentShapePpuAddress = des.ReadClassPointer <hknpShape>(br);
     br.ReadUInt64();
     m_maximumAabb = new hkAabb();
     m_maximumAabb.Read(des, br);
 }
 public virtual void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     m_shape          = des.ReadClassPointer <hknpShape>(br);
     m_reservedBodyId = br.ReadUInt32();
     m_motionId       = br.ReadUInt32();
     m_qualityId      = br.ReadByte();
     br.ReadByte();
     m_materialId          = br.ReadUInt16();
     m_collisionFilterInfo = br.ReadUInt32();
     m_flags = br.ReadInt32();
     m_collisionLookAheadDistance = br.ReadSingle();
     m_name        = des.ReadStringPointer(br);
     m_userData    = br.ReadUInt64();
     m_position    = des.ReadVector4(br);
     m_orientation = des.ReadQuaternion(br);
     m_spuFlags    = br.ReadByte();
     br.ReadUInt32();
     br.ReadUInt16();
     br.ReadByte();
     m_localFrame = des.ReadClassPointer <hkLocalFrame>(br);
 }
 public virtual void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     m_transform      = des.ReadTransform(br);
     m_scale          = des.ReadVector4(br);
     m_shape          = des.ReadClassPointer <hknpShape>(br);
     m_shapeTag       = br.ReadUInt16();
     m_destructionTag = br.ReadUInt16();
     m_padding_0      = br.ReadByte();
     m_padding_1      = br.ReadByte();
     m_padding_2      = br.ReadByte();
     m_padding_3      = br.ReadByte();
     m_padding_4      = br.ReadByte();
     m_padding_5      = br.ReadByte();
     m_padding_6      = br.ReadByte();
     m_padding_7      = br.ReadByte();
     m_padding_8      = br.ReadByte();
     m_padding_9      = br.ReadByte();
     m_padding_10     = br.ReadByte();
     m_padding_11     = br.ReadByte();
     m_padding_12     = br.ReadByte();
     m_padding_13     = br.ReadByte();
     m_padding_14     = br.ReadByte();
     m_padding_15     = br.ReadByte();
     m_padding_16     = br.ReadByte();
     m_padding_17     = br.ReadByte();
     m_padding_18     = br.ReadByte();
     m_padding_19     = br.ReadByte();
     m_padding_20     = br.ReadByte();
     m_padding_21     = br.ReadByte();
     m_padding_22     = br.ReadByte();
     m_padding_23     = br.ReadByte();
     m_padding_24     = br.ReadByte();
     m_padding_25     = br.ReadByte();
     m_padding_26     = br.ReadByte();
     m_padding_27     = br.ReadByte();
     m_padding_28     = br.ReadByte();
     m_padding_29     = br.ReadByte();
     br.ReadUInt32();
     br.ReadUInt16();
 }