From 36f2484663d1e3070f09220eaf48e56820ae1786 Mon Sep 17 00:00:00 2001 From: Irlan Date: Thu, 18 Apr 2019 11:03:28 -0300 Subject: [PATCH] Assert triangle area against zero instead of epsilon --- src/bounce/cloth/cloth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bounce/cloth/cloth.cpp b/src/bounce/cloth/cloth.cpp index baffc6b..efbfd10 100644 --- a/src/bounce/cloth/cloth.cpp +++ b/src/bounce/cloth/cloth.cpp @@ -330,7 +330,7 @@ void b3Cloth::ComputeMass() b3Vec3 v3 = m_mesh->vertices[triangle->v3]; float32 area = b3Area(v1, v2, v3); - B3_ASSERT(area > B3_EPSILON); + B3_ASSERT(area > 0.0f); float32 mass = rho * area;