perform position correction only when objects are penetrating

This commit is contained in:
Xuchen Han
2019-08-02 13:21:06 -07:00
parent 3dc8abcf36
commit 54303e02b1
3 changed files with 11 additions and 9 deletions

View File

@@ -947,7 +947,6 @@ struct btSoftColliders
{
// check for collision at x_{n+1}^*
if (psb->checkContact(m_colObj1Wrap, n.m_x, m, c.m_cti, /*predicted = */ true))
// if (psb->checkContact(m_colObj1Wrap, n.m_q, m, c.m_cti, /*predicted = */ false));
{
const btScalar ima = n.m_im;
const btScalar imb = m_rigidBody ? m_rigidBody->getInvMass() : 0.f;