From 6cc8d53a6ddb94ac1404cd081bbd0853bb62fac7 Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Sun, 4 May 2014 22:14:05 -0700 Subject: [PATCH] fix sphere-cube collisions at edges --- tests/physics/src/ShapeColliderTests.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/physics/src/ShapeColliderTests.cpp b/tests/physics/src/ShapeColliderTests.cpp index 7b3d956065..50d8f4bc66 100644 --- a/tests/physics/src/ShapeColliderTests.cpp +++ b/tests/physics/src/ShapeColliderTests.cpp @@ -701,6 +701,7 @@ void ShapeColliderTests::sphereTouchesAACubeFaces() { for (int i = 0; i < axes.size(); ++i) { glm::vec3 axis = axes[i]; + std::cout << "adebug j = " << i << " axis = " << axis << std::endl; // adebug // outside { collisions.clear(); @@ -809,6 +810,7 @@ void ShapeColliderTests::sphereTouchesAACubeEdges() { for (int i =0; i < axes.size(); ++i) { glm::vec3 axis = axes[i]; + std::cout << "adebug i = " << i << " axis = " << axis << std::endl; // adebug float lengthAxis = glm::length(axis); axis /= lengthAxis; float overlap = 0.25f;