aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Source/SceneQuery/src/SqPruningPool.h
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/SqPruningPool.h
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/SqPruningPool.h')
-rw-r--r--PhysX_3.4/Source/SceneQuery/src/SqPruningPool.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/PhysX_3.4/Source/SceneQuery/src/SqPruningPool.h b/PhysX_3.4/Source/SceneQuery/src/SqPruningPool.h
index 229ea340..0bf5e655 100644
--- a/PhysX_3.4/Source/SceneQuery/src/SqPruningPool.h
+++ b/PhysX_3.4/Source/SceneQuery/src/SqPruningPool.h
@@ -76,20 +76,20 @@ namespace Sq
PX_FORCE_INLINE const PxBounds3* getCurrentWorldBoxes() const { return mWorldBoxes; }
PX_FORCE_INLINE PxBounds3* getCurrentWorldBoxes() { return mWorldBoxes; }
- PX_FORCE_INLINE void setWorldAABB(PrunerHandle h, const PxBounds3& worldAABB)
- {
- mWorldBoxes[getIndex(h)] = worldAABB;
- }
-
PX_FORCE_INLINE const PxBounds3& getWorldAABB(PrunerHandle h) const
{
return mWorldBoxes[getIndex(h)];
}
- PX_FORCE_INLINE void updateObjects(const PrunerHandle* handles, const PxU32* indices, const PxBounds3* newBounds, PxU32 count)
+ PX_FORCE_INLINE void updateObjectsAndInflateBounds(const PrunerHandle* handles, const PxU32* indices, const PxBounds3* newBounds, PxU32 count)
{
for(PxU32 i=0; i<count; i++)
- Sq::inflateBounds(mWorldBoxes[getIndex(handles[i])], newBounds[indices[i]]);
+ {
+ const PoolIndex poolIndex = getIndex(handles[i]);
+ PX_ASSERT(poolIndex!=INVALID_PRUNERHANDLE);
+// if(poolIndex!=INVALID_PRUNERHANDLE)
+ Sq::inflateBounds(mWorldBoxes[poolIndex], newBounds[indices[i]]);
+ }
}
void preallocate(PxU32 entries);