mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-10-08 18:05:39 +00:00
reduced velocity should be updated from i-th iteration instead of from the predicted state, because thexternal force has no memory of the previous iteration
This commit is contained in:
@@ -37,6 +37,11 @@ btScalar btDeformableMultiBodyConstraintSolver::solveDeformableGroupIterations(b
|
||||
// solver body velocity <- rigid body velocity
|
||||
writeToSolverBody(bodies, numBodies, infoGlobal);
|
||||
|
||||
std::cout << "iter: " << iteration << "\tres: " << m_leastSquaresResidual << '\n';
|
||||
std::cout << "------------------\n";
|
||||
// std::cout << infoGlobal.m_leastSquaresResidualThreshold << '\n';
|
||||
// std::cout << maxIterations << '\n';
|
||||
|
||||
if (m_leastSquaresResidual <= infoGlobal.m_leastSquaresResidualThreshold || (iteration >= (maxIterations - 1)))
|
||||
{
|
||||
#ifdef VERBOSE_RESIDUAL_PRINTF
|
||||
|
||||
Reference in New Issue
Block a user