Skip to content
Snippets Groups Projects
Commit 0426652f authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

[GJK] Fix assert

  - if collision is very small epa algorithm may return slightly negative
    penetration.
parent baa37422
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,7 @@ namespace fcl
distance = -epa.depth;
normal = -epa.normal;
p1 = p2 = tf1.transform(w0 - epa.normal*(epa.depth *0.5));
assert (distance <= 0);
assert (distance <= 1e-6);
break;
}
case details::GJK::Valid:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment