| 5524 | } |
| 5525 | |
| 5526 | void Sc::Scene::deleteAggregate(PxU32 id) |
| 5527 | { |
| 5528 | Bp::BoundsIndex index; |
| 5529 | Bp::FilterGroup::Enum bpGroup; |
| 5530 | #ifdef BP_USE_AGGREGATE_GROUP_TAIL |
| 5531 | if(mAABBManager->destroyAggregate(index, bpGroup, id)) |
| 5532 | { |
| 5533 | getElementIDPool().releaseID(index); |
| 5534 | } |
| 5535 | #else |
| 5536 | if(mAABBManager->destroyAggregate(index, bpGroup, id)) |
| 5537 | { |
| 5538 | getElementIDPool().releaseID(index); |
| 5539 | |
| 5540 | // PT: this is clumsy.... |
| 5541 | const PxU32 rigidId = PxU32(bpGroup) - Bp::FilterGroup::eDYNAMICS_BASE; |
| 5542 | getRigidIDTracker().releaseID(rigidId); |
| 5543 | } |
| 5544 | #endif |
| 5545 | } |
| 5546 | |
| 5547 | void Sc::Scene::shiftOrigin(const PxVec3& shift) |
| 5548 | { |
no test coverage detected