Unverified Commit 64d04217 authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub
Browse files

core/sphere: fix signs

parent bcd6a0c7
......@@ -268,8 +268,8 @@ namespace fcl {
normal = -diff/len;
dist = len - s1.radius - s2.radius;
p1.noalias() = o1 - normal * s1.radius;
p2.noalias() = o2 + normal * s2.radius;
p1.noalias() = o1 + normal * s1.radius;
p2.noalias() = o2 - normal * s2.radius;
return (dist >=0);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment