aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Source/SceneQuery/src/SqSceneQueryManager.cpp
diff options
context:
space:
mode:
authorsschirm <[email protected]>2016-12-23 14:20:36 +0100
committersschirm <[email protected]>2016-12-23 14:56:17 +0100
commitef6937e69e8ee3f409cf9d460d5ad300a65d5924 (patch)
tree710426e8daa605551ce3f34b581897011101c30f /PhysX_3.4/Source/SceneQuery/src/SqSceneQueryManager.cpp
parentInitial commit: (diff)
downloadphysx-3.4-ef6937e69e8ee3f409cf9d460d5ad300a65d5924.tar.xz
physx-3.4-ef6937e69e8ee3f409cf9d460d5ad300a65d5924.zip
PhysX 3.4 / APEX 1.4 release candidate @21506124
Diffstat (limited to 'PhysX_3.4/Source/SceneQuery/src/SqSceneQueryManager.cpp')
-rw-r--r--PhysX_3.4/Source/SceneQuery/src/SqSceneQueryManager.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/PhysX_3.4/Source/SceneQuery/src/SqSceneQueryManager.cpp b/PhysX_3.4/Source/SceneQuery/src/SqSceneQueryManager.cpp
index cd3e25eb..1498c745 100644
--- a/PhysX_3.4/Source/SceneQuery/src/SqSceneQueryManager.cpp
+++ b/PhysX_3.4/Source/SceneQuery/src/SqSceneQueryManager.cpp
@@ -124,7 +124,7 @@ void PrunerExt::flushShapes(PxU32 index)
(func)(*bounds, *(reinterpret_cast<Scb::Shape*>(pp.data[0])), *(reinterpret_cast<Scb::Actor*>(pp.data[1])));
}
// PT: batch update happens after the loop instead of once per loop iteration
- mPruner->updateObjects(prunerHandles, NULL, numDirtyList);
+ mPruner->updateObjectsAfterManualBoundsUpdates(prunerHandles, numDirtyList);
mTimestamp += numDirtyList;
mDirtyList.clear();
}
@@ -257,7 +257,7 @@ void SceneQueryManager::removePrunerShape(PrunerData data)
mPrunerExt[index].removeFromDirtyList(handle);
mPrunerExt[index].invalidateTimestamp();
- mPrunerExt[index].pruner()->removeObjects(&handle);
+ mPrunerExt[index].pruner()->removeObjects(&handle, 1);
}
void SceneQueryManager::setDynamicTreeRebuildRateHint(PxU32 rebuildRateHint)
@@ -397,7 +397,7 @@ void SceneQueryManager::processSimUpdates()
if(nbBatchedObjects==NB_BATCHED_OBJECTS)
{
mPrunerExt[PruningIndex::eDYNAMIC].invalidateTimestamp();
- pruner->updateObjects(batchedHandles, NULL, nbBatchedObjects);
+ pruner->updateObjectsAfterManualBoundsUpdates(batchedHandles, nbBatchedObjects);
nbBatchedObjects = 0;
}
}
@@ -407,7 +407,7 @@ void SceneQueryManager::processSimUpdates()
if(nbBatchedObjects)
{
mPrunerExt[PruningIndex::eDYNAMIC].invalidateTimestamp();
- pruner->updateObjects(batchedHandles, NULL, nbBatchedObjects);
+ pruner->updateObjectsAfterManualBoundsUpdates(batchedHandles, nbBatchedObjects);
}
}
@@ -490,11 +490,11 @@ void SceneQueryManager::shiftOrigin(const PxVec3& shift)
mPrunerExt[i].pruner()->shiftOrigin(shift);
}
-void DynamicBoundsSync::sync(const PxU32* sqRefs, const PxU32* indices, const PxBounds3* bounds, PxU32 count)
+void DynamicBoundsSync::sync(const PrunerHandle* handles, const PxU32* indices, const PxBounds3* bounds, PxU32 count)
{
- mPruner->updateObjects(sqRefs, indices, bounds, count);
+ mPruner->updateObjectsAndInflateBounds(handles, indices, bounds, count);
- if (count)
+ if(count)
(*mTimestamp)++;
}