fix assert

This commit is contained in:
Irlan
2018-04-20 22:31:03 -03:00
parent 57a0809bcb
commit bd4ca5d143
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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.