| 341 | } |
| 342 | |
| 343 | PxAgain AABBPruner::raycast(const PxVec3& origin, const PxVec3& unitDir, PxReal& inOutDistance, PrunerCallback& pcb) const |
| 344 | { |
| 345 | PX_ASSERT(!mUncommittedChanges); |
| 346 | |
| 347 | PxAgain again = true; |
| 348 | |
| 349 | if(mAABBTree) |
| 350 | again = AABBTreeRaycast<false, AABBTree, AABBTreeRuntimeNode, PrunerPayload, PrunerCallback>()(mPool.getObjects(), mPool.getCurrentWorldBoxes(), *mAABBTree, origin, unitDir, inOutDistance, PxVec3(0.0f), pcb); |
| 351 | |
| 352 | if(again && mIncrementalRebuild && mBucketPruner.getNbObjects()) |
| 353 | again = mBucketPruner.raycast(origin, unitDir, inOutDistance, pcb); |
| 354 | |
| 355 | return again; |
| 356 | } |
| 357 | |
| 358 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 359 | /** |
nothing calls this directly
no test coverage detected