Skip to content

Commit

Permalink
backport bullet-featherstone solver iters
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Apr 16, 2024
1 parent d89c026 commit d0a6e50
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bullet-featherstone/src/Base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,15 @@ WorldInfo::WorldInfo(std::string name_)

// By default a large impulse is applied when collisions penetrate
// which causes unstable behavior. Bullet featherstone does not support
// configuring split impulse and penetration threshold parameters. Instead the
// penentration impulse depends on the erp2 parameter so set to a small value
// (default is 0.2).
// configuring split impulse and penetration threshold parameters. Instead
// the penentration impulse depends on the erp2 parameter so set to a small
// value (default in bullet is 0.2).
this->world->getSolverInfo().m_erp2 = btScalar(0.002);

// Set solver iterations to the same as the default value in SDF,
// //world/physics/solver/bullet/iters
// (default in bullet is 10)
this->world->getSolverInfo().m_numIterations = 50u;
}

} // namespace bullet_featherstone
Expand Down

0 comments on commit d0a6e50

Please sign in to comment.