diff --git a/sources/reactphysics3d/collision/CollisionDetection.cpp b/sources/reactphysics3d/collision/CollisionDetection.cpp index 7db7603a..67260130 100644 --- a/sources/reactphysics3d/collision/CollisionDetection.cpp +++ b/sources/reactphysics3d/collision/CollisionDetection.cpp @@ -67,6 +67,7 @@ bool CollisionDetection::computeCollisionDetection(CollisionWorld* collisionWorl // Use the narrow-phase algorithm to check if the two bodies really collide if(narrowPhaseAlgorithm->testCollision(&obb1, &obb2, &contact)) { assert(contact != 0); + existsCollision = true; // Add the new collision contact into the collision world collisionWorld->addConstraint(contact);