From 880664c27e88696501e5a422d5663f6878f2d1dd Mon Sep 17 00:00:00 2001 From: "chappuis.daniel" Date: Thu, 8 Jul 2010 07:31:22 +0000 Subject: [PATCH] Add some assert() statements git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@348 92aac97c-a6ce-11dd-a772-7fcde58d38e6 --- sources/reactphysics3d/collision/CollisionDetection.cpp | 3 +++ 1 file changed, 3 insertions(+) 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