Verified Commit 018425e9 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

collision: fix missing else

parent c21cebf4
......@@ -97,7 +97,7 @@ std::size_t ShapeShapeCollide(const CollisionGeometry* o1, const Transform3f& tf
}
num_contacts = result.numContacts();
}
if (distance <= request.security_margin) {
else if (distance <= request.security_margin) {
if (result.numContacts () < request.num_max_contacts) {
const Vec3f& p1 = distanceResult.nearest_points [0];
const Vec3f& p2 = distanceResult.nearest_points [1];
......
Markdown is supported
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