diff options
| author | Sheikh Dawood Abdul Ajees <[email protected]> | 2017-11-20 11:35:52 -0600 |
|---|---|---|
| committer | Sheikh Dawood Abdul Ajees <[email protected]> | 2017-11-20 11:35:52 -0600 |
| commit | 3cc1861221d761b7f0301b9b61de4e1aa18c09f4 (patch) | |
| tree | a51eb808016e1710a4bbd537000a493250602944 /PhysX_3.4/Source/GeomUtils/src/hf/GuSweepsHF.cpp | |
| parent | PhysX 3.4.1, APEX 1.4.1 Release @22845541 (diff) | |
| download | physx-3.4-3cc1861221d761b7f0301b9b61de4e1aa18c09f4.tar.xz physx-3.4-3cc1861221d761b7f0301b9b61de4e1aa18c09f4.zip | |
PhysX 3.4.1, APEX 1.4.1 Release @23131702
Diffstat (limited to 'PhysX_3.4/Source/GeomUtils/src/hf/GuSweepsHF.cpp')
| -rw-r--r-- | PhysX_3.4/Source/GeomUtils/src/hf/GuSweepsHF.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/PhysX_3.4/Source/GeomUtils/src/hf/GuSweepsHF.cpp b/PhysX_3.4/Source/GeomUtils/src/hf/GuSweepsHF.cpp index 5d653fc6..33eb7c52 100644 --- a/PhysX_3.4/Source/GeomUtils/src/hf/GuSweepsHF.cpp +++ b/PhysX_3.4/Source/GeomUtils/src/hf/GuSweepsHF.cpp @@ -129,6 +129,7 @@ public: mPose (pose), mDistance (distance) { + mSweepHit.faceIndex = 0xFFFFffff; } virtual PxAgain onEvent(PxU32 nb, PxU32* indices) @@ -327,6 +328,7 @@ public: { const bool hasContacts = computeConvex_HeightFieldMTD(hfGeom, pose, convexGeom, convexPose, inflation, mIsDoubleSided, GuHfQueryFlags::eWORLD_SPACE, sweepHit); + sweepHit.faceIndex = mSweepHit.faceIndex; sweepHit.flags = PxHitFlag::eDISTANCE | PxHitFlag::eNORMAL | PxHitFlag::eFACE_INDEX; if(!hasContacts) { @@ -424,6 +426,7 @@ public: mInflation (inflation) { mMinToi = FMax(); + mSweepHit.faceIndex = 0xFFFFffff; } virtual PxAgain onEvent(PxU32 nb, PxU32* indices) |