From c5f8900119ddd7914d63637a35c65e0f710f73f4 Mon Sep 17 00:00:00 2001 From: notgiven688 Date: Sun, 31 Dec 2023 10:43:19 +0100 Subject: [PATCH] Fix typo in comment --- src/GJKEPA.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)