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

Method addObject

physx/source/scenequery/src/SqCompoundPruningPool.cpp:82–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80///////////////////////////////////////////////////////////////////////////////////////////////
81
82bool CompoundTree::addObject(PrunerHandle& result, const PxBounds3& bounds, const PrunerPayload payload)
83{
84 mPruningPool->addObjects(&result, &bounds, &payload, 1);
85
86 const PoolIndex poolIndex = mPruningPool->getIndex(result);
87 NodeList changedLeaves;
88 changedLeaves.reserve(8);
89 IncrementalAABBTreeNode* node = mTree->insert(poolIndex, mPruningPool->getCurrentWorldBoxes(), changedLeaves);
90 updateMapping(poolIndex, node, changedLeaves);
91
92 return true;
93}
94
95///////////////////////////////////////////////////////////////////////////////////////////////
96

Callers

nothing calls this directly

Calls 5

getCurrentWorldBoxesMethod · 0.80
addObjectsMethod · 0.45
getIndexMethod · 0.45
reserveMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected