// PX_SERIALIZATION void NpArticulationJoint::resolveReferences(PxDeserializationContext& context) { context.translatePxBase(mParent); context.translatePxBase(mChild); // temporary 3.3.1 -> 3.3.2 backwards compatibility patch; remove in 3.4. PxU32 version = context.getPhysXVersion(); if(version < 0x03030200) mJoint.getScArticulationJoint().setDriveType(PxArticulationJointDriveType::eTARGET); }
void NpArticulationLink::resolveReferences(PxDeserializationContext& context) { context.translatePxBase(mRoot); context.translatePxBase(mInboundJoint); context.translatePxBase(mParent); NpArticulationLinkT::resolveReferences(context); const PxU32 nbLinks = mChildLinks.size(); for(PxU32 i=0;i<nbLinks;i++) context.translatePxBase(mChildLinks[i]); }
void DistanceJoint::importExtraData(PxDeserializationContext& context) { if(mData) mData = context.readExtraData<DistanceJointData, PX_SERIAL_ALIGN>(); context.readName(mName); }
// PX_SERIALIZATION void NpCloth::resolveReferences(PxDeserializationContext& context) { context.translatePxBase(mClothFabric); mClothFabric->incRefCount(); // pass fabric down to Scb mCloth.resolveReferences(mClothFabric->getScClothFabric()); }
void NpArticulation::resolveReferences(PxDeserializationContext& context) { const PxU32 nbLinks = mArticulationLinks.size(); for(PxU32 i=0;i<nbLinks;i++) { context.translatePxBase(mArticulationLinks[i]); } mAggregate = NULL; }
void BigConvexData::importExtraData(PxDeserializationContext& context) { if(mData.mSamples) mData.mSamples = context.readExtraData<PxU8, PX_SERIAL_ALIGN>(PxU32(mData.mNbSamples*2)); if(mData.mValencies) { context.alignExtraData(); PxU32 numVerts = (mData.mNbVerts+3)&~3; mData.mValencies = context.readExtraData<Gu::Valency>(numVerts); mData.mAdjacentVerts = context.readExtraData<PxU8>(mData.mNbAdjVerts); } }
void NpArticulation::importExtraData(PxDeserializationContext& context) { Cm::importInlineArray(mArticulationLinks, context); context.readName(mName); }
// PX_SERIALIZATION void NpConstraint::resolveReferences(PxDeserializationContext& context) { context.translatePxBase(mActor0); context.translatePxBase(mActor1); }
void RTree::importExtraData(PxDeserializationContext& context) { context.alignExtraData(128); mPages = context.readExtraData<RTreePage>(mTotalPages); }