summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Bennice <mbennice@google.com>2022-08-11 14:00:12 -0700
committerMatt Bennice <mbennice@google.com>2022-08-11 14:00:12 -0700
commitee0100abbfebc19de560700bb4ad73064aa4c982 (patch)
tree736c7d6b99533dfd472014173c5f0fe8768da3fb
parent555c0c6cd925a93e9be6812a2e235a4df6d2b0c4 (diff)
downloadbullet3-ee0100abbfebc19de560700bb4ad73064aa4c982.tar.gz
compare to SIMD_EPSILON.
-rw-r--r--src/BulletSoftBody/btSoftBody.cpp2
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));