diff options
author | Matt Bennice <mbennice@google.com> | 2022-08-11 14:00:12 -0700 |
---|---|---|
committer | Matt Bennice <mbennice@google.com> | 2022-08-11 14:00:12 -0700 |
commit | ee0100abbfebc19de560700bb4ad73064aa4c982 (patch) | |
tree | 736c7d6b99533dfd472014173c5f0fe8768da3fb | |
parent | 555c0c6cd925a93e9be6812a2e235a4df6d2b0c4 (diff) | |
download | bullet3-ee0100abbfebc19de560700bb4ad73064aa4c982.tar.gz |
compare to SIMD_EPSILON.
-rw-r--r-- | src/BulletSoftBody/btSoftBody.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BulletSoftBody/btSoftBody.cpp b/src/BulletSoftBody/btSoftBody.cpp index 64005cc2c..c873099b4 100644 --- a/src/BulletSoftBody/btSoftBody.cpp +++ b/src/BulletSoftBody/btSoftBody.cpp @@ -2817,7 +2817,7 @@ static void getBarycentric(const btVector3& p, const btVector3& a, const btVecto btScalar d21 = v2.dot(v1); btScalar denom = d00 * d11 - d01 * d01; // In the case of a degenerate triangle, pick a vertex. - if (denom == btScalar(0.0)) + if (btFabs(denom) < SIMD_EPSILON) { bary.setY(btScalar(0.0)); bary.setZ(btScalar(0.0)); |