each node only allows a single contact; initial guess for newton set to x = x_n + dt*v_n

This commit is contained in:
Xuchen Han
2019-08-29 10:08:34 -07:00
committed by Xuchen Han
parent 482458c9df
commit e124c62a70
4 changed files with 34 additions and 4 deletions

View File

@@ -49,6 +49,16 @@ struct DeformableContactConstraint
m_static.push_back(false);
m_can_be_dynamic.push_back(true);
}
void replace(const btSoftBody::RContact& rcontact)
{
m_contact.clear();
m_total_normal_dv.clear();
m_total_tangent_dv.clear();
m_static.clear();
m_can_be_dynamic.clear();
append(rcontact);
}
~DeformableContactConstraint()
{