// 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]);
}
// PX_SERIALIZATION
void NpCloth::resolveReferences(PxDeserializationContext& context)
{
	context.translatePxBase(mClothFabric);
	mClothFabric->incRefCount();	

	// pass fabric down to Scb
	mCloth.resolveReferences(mClothFabric->getScClothFabric());	
}
Beispiel #4
0
void NpArticulation::resolveReferences(PxDeserializationContext& context)
{
	const PxU32 nbLinks = mArticulationLinks.size();
	for(PxU32 i=0;i<nbLinks;i++)
	{
		context.translatePxBase(mArticulationLinks[i]);
	}
	
	mAggregate = NULL;	
}
// PX_SERIALIZATION
void NpConstraint::resolveReferences(PxDeserializationContext& context)
{	
	context.translatePxBase(mActor0);
	context.translatePxBase(mActor1);
}