add damping energy in line search

This commit is contained in:
Xuchen Han
2019-09-17 14:58:16 -07:00
parent 3dcfcda19a
commit ae42cc561e
15 changed files with 128 additions and 74 deletions

View File

@@ -2914,6 +2914,15 @@ void btSoftBody::updateDeformation()
s.m_cofF = t.m_F.adjoint().transpose();
}
}
void btSoftBody::advanceDeformation()
{
updateDeformation();
for (int i = 0; i < m_tetras.size(); ++i)
{
m_tetraScratchesTn[i] = m_tetraScratches[i];
}
}
//
void btSoftBody::Joint::Prepare(btScalar dt, int)
{