From 45efc455e4135c4ef3c535147a56a6293c71b0ee Mon Sep 17 00:00:00 2001
From: remod <rdiethelm@gmail.com>
Date: Tue, 22 Apr 2014 09:00:09 +0200
Subject: [PATCH] fixed wrong call of projectInTriangle()

---
 src/narrowphase/narrowphase.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/narrowphase/narrowphase.cpp b/src/narrowphase/narrowphase.cpp
index 9e085217..1333585f 100644
--- a/src/narrowphase/narrowphase.cpp
+++ b/src/narrowphase/narrowphase.cpp
@@ -388,7 +388,7 @@ bool sphereTriangleIntersect(const Sphere& s, const Transform3f& tf,
   Vec3f contact_point;
   if(is_inside_contact_plane)
   {
-    if(projectInTriangle(P1, P2, P3, center, normal))
+    if(projectInTriangle(P1, P2, P3, normal, center))
     {
       has_contact = true;
       contact_point = center - normal * distance_from_plane;
-- 
GitLab