diff --git a/src/narrowphase/narrowphase.cpp b/src/narrowphase/narrowphase.cpp index 9e0852171f362df97d322d49abe80f78eceef121..1333585f7dc26f62e678698193386d3010706366 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;