| 80 | /////////////////////////////////////////////////////////////////////////////////////////////// |
| 81 | |
| 82 | bool 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 |
nothing calls this directly
no test coverage detected