aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Source/SceneQuery/src/SqBucketPruner.cpp
diff options
context:
space:
mode:
authorSheikh Dawood Abdul Ajees <[email protected]>2017-05-12 17:45:18 -0500
committerSheikh Dawood Abdul Ajees <[email protected]>2017-05-12 17:45:18 -0500
commit7f12de60542edc8f1c6683e6b4cdce8570e51456 (patch)
tree0b5d533bae189ea286257b5ab78b635fafb19aa0 /PhysX_3.4/Source/SceneQuery/src/SqBucketPruner.cpp
parentPhysX 3.4, APEX 1.4 patch release @22017166 (diff)
downloadphysx-3.4-7f12de60542edc8f1c6683e6b4cdce8570e51456.tar.xz
physx-3.4-7f12de60542edc8f1c6683e6b4cdce8570e51456.zip
PhysX 3.4, APEX 1.4 patch release @22121272
Diffstat (limited to 'PhysX_3.4/Source/SceneQuery/src/SqBucketPruner.cpp')
-rw-r--r--PhysX_3.4/Source/SceneQuery/src/SqBucketPruner.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/PhysX_3.4/Source/SceneQuery/src/SqBucketPruner.cpp b/PhysX_3.4/Source/SceneQuery/src/SqBucketPruner.cpp
index e2d0d50e..8c5f3c33 100644
--- a/PhysX_3.4/Source/SceneQuery/src/SqBucketPruner.cpp
+++ b/PhysX_3.4/Source/SceneQuery/src/SqBucketPruner.cpp
@@ -690,10 +690,10 @@ bool BucketPrunerCore::removeObject(const PrunerPayload& object, PxU32& timeStam
// Invalidating the box does not invalidate the sorting, since it's now captured in mData0/mData1.
// That is, mData0/mData1 keep their previous integer-encoded values, as if the box/object was still here.
- PxBounds3 empty;
- empty.setEmpty();
- mSortedWorldBoxes[sortedIndex].mCenter = empty.getCenter();
- mSortedWorldBoxes[sortedIndex].mExtents = empty.getExtents();
+// PxBounds3 empty;
+// empty.setEmpty();
+ mSortedWorldBoxes[sortedIndex].mCenter = PxVec3(0.0f);
+ mSortedWorldBoxes[sortedIndex].mExtents = PxVec3(-2.0f*PxSqrt(0.25f * 1e33f)); // PT: TODO: refactor value with similar one in SqAABBTree.cpp
// Note that we don't touch mSortedObjects here. We could, but this is not necessary.
}
return true;