switch to damping model from Irvine 05 for its SPDness

This commit is contained in:
Xuchen Han
2019-10-10 22:55:11 -07:00
parent 87546bb7c3
commit e87df18544
2 changed files with 10 additions and 4 deletions

View File

@@ -376,8 +376,8 @@ void btDeformableBodySolver::predictDeformableMotion(btSoftBody* psb, btScalar d
psb->updateBounds();
/* Integrate */
// do not allow particles to move more than 10% of the bounding box size
btScalar max_v = 0.1 * (psb->m_bounds[1]-psb->m_bounds[0]).norm() / dt;
// do not allow particles to move more than the bounding box size
btScalar max_v = (psb->m_bounds[1]-psb->m_bounds[0]).norm() / dt;
for (i = 0, ni = psb->m_nodes.size(); i < ni; ++i)
{
btSoftBody::Node& n = psb->m_nodes[i];