| 382 | } |
| 383 | |
| 384 | void 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 | |
| 407 | NpAggregate* NpAggregate::createObject(PxU8*& address, PxDeserializationContext& context) |
| 408 | { |
no test coverage detected