MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / deleteAggregate

Method deleteAggregate

physx/source/simulationcontroller/src/ScScene.cpp:5526–5545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5524}
5525
5526void 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
5547void Sc::Scene::shiftOrigin(const PxVec3& shift)
5548{

Callers 2

removeAggregateMethod · 0.80
processPendingRemoveMethod · 0.80

Calls 2

destroyAggregateMethod · 0.80
releaseIDMethod · 0.45

Tested by

no test coverage detected