diff --git a/sources/reactphysics3d/collision/CollisionDetection.cpp b/sources/reactphysics3d/collision/CollisionDetection.cpp index 46dbfde9..4a50544c 100644 --- a/sources/reactphysics3d/collision/CollisionDetection.cpp +++ b/sources/reactphysics3d/collision/CollisionDetection.cpp @@ -195,6 +195,7 @@ void CollisionDetection::computeContact(const ContactInfo* const contactInfo) { // Move the clipped edge halway between the edge of OBB1 and the face of OBB2 clippedEdge = movePoints(clippedEdge, penetrationDepth/2.0 * normal.getOpposite()); + assert(clippedEdge.size() == 2); // For each point of the contact set for (unsigned int i=0; i= 3); // For each point of the contact set for (unsigned int i=0; i