Skip to content

Commit

Permalink
Fix typo in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
notgiven688 committed Dec 31, 2023
1 parent fbfd7e3 commit c5f8900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GJKEPA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c5f8900

Please sign in to comment.