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.