swap m_x and m_q in softbody to align with rendering convention

This commit is contained in:
Xuchen Han
2019-08-26 16:18:56 -07:00
parent 7c39052163
commit e73f70efa2
6 changed files with 16 additions and 16 deletions

View File

@@ -166,7 +166,7 @@ void btDeformableMultiBodyDynamicsWorld::integrateTransforms(btScalar timeStep)
node.m_v[c] = -clampDeltaV;
}
}
node.m_x = node.m_q + timeStep * node.m_v;
node.m_x = node.m_x + timeStep * node.m_v;
}
}
m_deformableBodySolver->revertVelocity();