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