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

Method addObjects

physx/source/scenequery/src/SqBucketPruner.cpp:2195–2206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2193}
2194
2195bool BucketPruner::addObjects(PrunerHandle* results, const PxBounds3* bounds, const PrunerPayload* payload, PxU32 count, bool)
2196{
2197 if(!count)
2198 return true;
2199
2200 const PxU32 valid = mPool.addObjects(results, bounds, payload, count);
2201 mCore.mDirty = true;
2202
2203 mCore.setExternalMemory(mPool.getNbActiveObjects(), mPool.getCurrentWorldBoxes(), mPool.getObjects());
2204
2205 return valid == count;
2206}
2207
2208void BucketPruner::removeObjects(const PrunerHandle* handles, PxU32 count)
2209{

Callers

nothing calls this directly

Calls 4

setExternalMemoryMethod · 0.80
getNbActiveObjectsMethod · 0.80
getCurrentWorldBoxesMethod · 0.80
getObjectsMethod · 0.45

Tested by

no test coverage detected