diff --git a/src/GJKEPA.cs b/src/GJKEPA.cs index 551577f..ff783d3 100644 --- a/src/GJKEPA.cs +++ b/src/GJKEPA.cs @@ -346,7 +346,7 @@ public bool Solve(out JVector point1, out JVector point2, out JVector normal, ou // c = Triangles[Head].ClosestToOrigin // s = searchDir // - // abs(dot(c - v, s)) / len(s) < e <=> [dot(c - v, s)]^2 = e*e*s^2 + // abs(dot(c - v, s)) / len(s) < e <=> [dot(c - v, s)]^2 < e*e*s^2 double deltaDist = JVector.Dot(ctri.ClosestToOrigin - Vertices[vPointer], searchDir); if (deltaDist * deltaDist <= CollideEpsilon * CollideEpsilon * searchDirSq)