diff options
Diffstat (limited to 'PhysX_3.4/Source/SceneQuery/src')
| -rw-r--r-- | PhysX_3.4/Source/SceneQuery/src/SqAABBTree.cpp | 3 | ||||
| -rw-r--r-- | PhysX_3.4/Source/SceneQuery/src/SqBucketPruner.cpp | 8 |
2 files changed, 6 insertions, 5 deletions
diff --git a/PhysX_3.4/Source/SceneQuery/src/SqAABBTree.cpp b/PhysX_3.4/Source/SceneQuery/src/SqAABBTree.cpp index 46ad64c7..bb628010 100644 --- a/PhysX_3.4/Source/SceneQuery/src/SqAABBTree.cpp +++ b/PhysX_3.4/Source/SceneQuery/src/SqAABBTree.cpp @@ -615,7 +615,8 @@ static PX_FORCE_INLINE void refitNode(AABBTreeRuntimeNode* PX_RESTRICT current, else { // Might happen after a node has been invalidated - const float max = 0.25f * 1e33f; // ### +// const float max = 0.25f * 1e33f; // ### + const float max = PxSqrt(0.25f * 1e33f); // ### resultMinV = V4Load(max); resultMaxV = V4Load(-max); } 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; |