MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / resolveReferences

Method resolveReferences

deps/physx/physx/source/physx/src/NpAggregate.cpp:384–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384void NpAggregate::resolveReferences(PxDeserializationContext& context)
385{
386 // Resolve actor pointers if needed
387 for(PxU32 i=0; i < mNbActors; i++)
388 {
389 context.translatePxBase(mActors[i]);
390 {
391 //update aggregate if mActors is in external reference
392 NpActor& np = NpActor::getFromPxActor(*mActors[i]);
393 if(np.getAggregate() == NULL)
394 {
395 np.setAggregate(this, *mActors[i]);
396 }
397 if(mActors[i]->getType() == PxActorType::eARTICULATION_LINK)
398 {
399 PxArticulationBase& articulation = static_cast<NpArticulationLink*>(mActors[i])->getRoot();
400 if(!articulation.getAggregate())
401 reinterpret_cast<PxArticulationImpl*>(articulation.getImpl())->setAggregate(this);
402 }
403 }
404 }
405}
406
407NpAggregate* NpAggregate::createObject(PxU8*& address, PxDeserializationContext& context)
408{

Callers 1

createObjectMethod · 0.45

Calls 6

translatePxBaseMethod · 0.80
getAggregateMethod · 0.45
setAggregateMethod · 0.45
getTypeMethod · 0.45
getRootMethod · 0.45
getImplMethod · 0.45

Tested by

no test coverage detected