From bd4ca5d143c87c57f4bd4765a84bc45f4e536452 Mon Sep 17 00:00:00 2001 From: Irlan <-> Date: Fri, 20 Apr 2018 22:31:03 -0300 Subject: [PATCH] fix assert --- src/bounce/collision/shapes/qhull.cpp | 2 +- src/bounce/dynamics/shapes/hull_shape.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bounce/collision/shapes/qhull.cpp b/src/bounce/collision/shapes/qhull.cpp index 8bdb151..3b36aa2 100644 --- a/src/bounce/collision/shapes/qhull.cpp +++ b/src/bounce/collision/shapes/qhull.cpp @@ -63,7 +63,7 @@ struct b3PIMap // static b3Vec3 b3ComputeCentroid(b3QHull* hull) { - B3_ASSERT(hull->vertexCount >= 3); + B3_ASSERT(hull->vertexCount >= 4); // volume = int(dV) float32 volume = 0.0f; diff --git a/src/bounce/dynamics/shapes/hull_shape.cpp b/src/bounce/dynamics/shapes/hull_shape.cpp index 3c70c49..cb43a13 100644 --- a/src/bounce/dynamics/shapes/hull_shape.cpp +++ b/src/bounce/dynamics/shapes/hull_shape.cpp @@ -112,7 +112,7 @@ void b3HullShape::ComputeMass(b3MassData* massData, float32 density) const // Here, it was used the great SymPy. // SymPy was available at http://live.sympy.org/ - B3_ASSERT(m_hull->vertexCount >= 3); + B3_ASSERT(m_hull->vertexCount >= 4); // Put the hull relative to a point that is inside the hull // to help reducing round-off errors.