diff options
| author | Sheikh Dawood <[email protected]> | 2018-04-16 11:35:38 -0500 |
|---|---|---|
| committer | Sheikh Dawood <[email protected]> | 2018-04-16 11:35:38 -0500 |
| commit | 5f95687888581f6b18f40fa7f6c30d1eafc7a707 (patch) | |
| tree | a38019870dd5955d009cf94f518ef11300c719c0 /PhysX_3.4/Source/SceneQuery | |
| parent | PhysX 3.4, APEX 1.4 patch release @23879214 (diff) | |
| download | physx-3.4-5f95687888581f6b18f40fa7f6c30d1eafc7a707.tar.xz physx-3.4-5f95687888581f6b18f40fa7f6c30d1eafc7a707.zip | |
PhysX 3.4, APEX 1.4 patch release @23933511
Diffstat (limited to 'PhysX_3.4/Source/SceneQuery')
| -rw-r--r-- | PhysX_3.4/Source/SceneQuery/src/SqIncrementalAABBTree.cpp | 4 | ||||
| -rw-r--r-- | PhysX_3.4/Source/SceneQuery/src/SqIncrementalAABBTree.h | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/PhysX_3.4/Source/SceneQuery/src/SqIncrementalAABBTree.cpp b/PhysX_3.4/Source/SceneQuery/src/SqIncrementalAABBTree.cpp index be5fccf4..10c371a0 100644 --- a/PhysX_3.4/Source/SceneQuery/src/SqIncrementalAABBTree.cpp +++ b/PhysX_3.4/Source/SceneQuery/src/SqIncrementalAABBTree.cpp @@ -562,8 +562,8 @@ static void checkNode(IncrementalAABBTreeNode* node, IncrementalAABBTreeNode* pa PX_ASSERT(!parent->isLeaf()); PX_ASSERT(parent->mChilds[0] == node || parent->mChilds[1] == node); - ASSERT_ISVALIDVEC3V(node->mBVMin); - ASSERT_ISVALIDVEC3V(node->mBVMax); + //ASSERT_ISVALIDVEC3V(node->mBVMin); + //ASSERT_ISVALIDVEC3V(node->mBVMax); if(!node->isLeaf()) { diff --git a/PhysX_3.4/Source/SceneQuery/src/SqIncrementalAABBTree.h b/PhysX_3.4/Source/SceneQuery/src/SqIncrementalAABBTree.h index 040302a7..6a8f9e74 100644 --- a/PhysX_3.4/Source/SceneQuery/src/SqIncrementalAABBTree.h +++ b/PhysX_3.4/Source/SceneQuery/src/SqIncrementalAABBTree.h @@ -96,22 +96,22 @@ namespace physx PX_FORCE_INLINE IncrementalAABBTreeNode* getPos(IncrementalAABBTreeNode* ) { return mChilds[0]; } PX_FORCE_INLINE IncrementalAABBTreeNode* getNeg(IncrementalAABBTreeNode* ) { return mChilds[1]; } - PX_FORCE_INLINE void getAABBCenterExtentsV(Vec4V* center, Vec4V* extents) const + PX_FORCE_INLINE void getAABBCenterExtentsV(physx::shdfnd::aos::Vec3V* center, physx::shdfnd::aos::Vec3V* extents) const { const float half = 0.5f; const FloatV halfV = FLoad(half); - *extents = V4Scale(V4Sub(mBVMax, mBVMin), halfV); - *center = V4Scale(V4Add(mBVMax, mBVMin), halfV); + *extents = Vec3V_From_Vec4V((V4Scale(V4Sub(mBVMax, mBVMin), halfV))); + *center = Vec3V_From_Vec4V((V4Scale(V4Add(mBVMax, mBVMin), halfV))); } - PX_FORCE_INLINE void getAABBCenterExtentsV2(Vec4V* center, Vec4V* extents) const + PX_FORCE_INLINE void getAABBCenterExtentsV2(physx::shdfnd::aos::Vec3V* center, physx::shdfnd::aos::Vec3V* extents) const { - *extents = V4Sub(mBVMax, mBVMin); - *center = V4Add(mBVMax, mBVMin); + *extents = Vec3V_From_Vec4V((V4Sub(mBVMax, mBVMin))); + *center = Vec3V_From_Vec4V((V4Add(mBVMax, mBVMin))); } - PX_FORCE_INLINE void getAABBMinMaxV(Vec4V* minV, Vec4V* maxV) const + PX_FORCE_INLINE void getAABBMinMaxV(physx::shdfnd::aos::Vec4V* minV, physx::shdfnd::aos::Vec4V* maxV) const { *minV = mBVMin; *maxV = mBVMax; |