diff options
| author | Sheikh Dawood Abdul Ajees <[email protected]> | 2017-05-12 17:45:18 -0500 |
|---|---|---|
| committer | Sheikh Dawood Abdul Ajees <[email protected]> | 2017-05-12 17:45:18 -0500 |
| commit | 7f12de60542edc8f1c6683e6b4cdce8570e51456 (patch) | |
| tree | 0b5d533bae189ea286257b5ab78b635fafb19aa0 /PhysX_3.4/Source/GeomUtils/src/pcm/GuPCMTriangleContactGen.cpp | |
| parent | PhysX 3.4, APEX 1.4 patch release @22017166 (diff) | |
| download | physx-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/GeomUtils/src/pcm/GuPCMTriangleContactGen.cpp')
| -rw-r--r-- | PhysX_3.4/Source/GeomUtils/src/pcm/GuPCMTriangleContactGen.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/PhysX_3.4/Source/GeomUtils/src/pcm/GuPCMTriangleContactGen.cpp b/PhysX_3.4/Source/GeomUtils/src/pcm/GuPCMTriangleContactGen.cpp index 9bc30b14..fde67300 100644 --- a/PhysX_3.4/Source/GeomUtils/src/pcm/GuPCMTriangleContactGen.cpp +++ b/PhysX_3.4/Source/GeomUtils/src/pcm/GuPCMTriangleContactGen.cpp @@ -1098,8 +1098,6 @@ namespace physx using namespace Ps::aos; - const FloatV threshold = FLoad(0.7071f);//about 45 degree0 - PX_UNUSED(threshold); { FeatureStatus status = POLYDATA0; @@ -1139,10 +1137,10 @@ namespace physx { const Gu::HullPolygonData* referencePolygon = &polyData.mPolygons[feature1]; - const Vec3V contactNormal = V3Normalize(M33TrnspsMulV3(polyMap->shape2Vertex, V3LoadU(referencePolygon->mPlane.n))); - const Vec3V nContactNormal = V3Neg(contactNormal); - const FloatV cosTheta = V3Dot(nContactNormal, triNormal); - + const FloatV cosTheta = V3Dot(V3Neg(minNormal), triNormal); + + const FloatV threshold = FLoad(0.707106781f);//about 45 degree0 + if(FAllGrtr(cosTheta, threshold)) { patchNormal = triNormal; |