Commit eee2da08 authored by Jiarui Li's avatar Jiarui Li
Browse files

clear penetrating elements

parent 8440750f
......@@ -119,6 +119,8 @@ void CollisionDetection::computeNarrowPhase(int narrowPhaseMethod) {
}
}
}
m_penetratingVertices.clear();
m_penetratingEdges.clear();
}
// look for vertexFace
......@@ -188,4 +190,4 @@ void CollisionDetection::applyImpulse(double eps) {
//contact.a->setAngularMomentum();
//contact.b->setAngularMomentum();
}
}
\ No newline at end of file
}
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