fix bug in deformable vs. deformable friction

This commit is contained in:
Xuchen Han
2019-10-23 12:17:21 -07:00
parent 9e72e01dad
commit c6af3aa3f8
2 changed files with 2 additions and 2 deletions

View File

@@ -435,7 +435,7 @@ btScalar btDeformableFaceNodeContactConstraint::solveConstraint()
m_total_tangent_dv -= impulse_tangent * m_contact->m_imf;
}
if (m_total_normal_dv.dot(m_contact->m_normal) < 0)
if (m_total_normal_dv.dot(m_contact->m_normal) > 0)
{
// separating in the normal direction
m_static = false;