diff --git a/sources/reactphysics3d/body/OBB.cpp b/sources/reactphysics3d/body/OBB.cpp index 8420dfbf..fabfa134 100644 --- a/sources/reactphysics3d/body/OBB.cpp +++ b/sources/reactphysics3d/body/OBB.cpp @@ -23,7 +23,6 @@ #include // TODO : Remove this in the final version #include // TODO : Remove this in the final version #include -#include // We want to use the ReactPhysics3D namespace using namespace reactphysics3d; @@ -167,6 +166,8 @@ std::vector OBB::getExtremeVertices(const Vector3D& directionAxis) con extremeVertices.push_back(vertex); } } + + assert(extremeVertices.size() == 1 || extremeVertices.size() == 2); } // An extreme should be a unique vertex, an edge or a face