diff --git a/examples/RobotSimulator/b3RobotSimulatorClientAPI_NoGUI.cpp b/examples/RobotSimulator/b3RobotSimulatorClientAPI_NoGUI.cpp index 760670382..dfe6e19a2 100644 --- a/examples/RobotSimulator/b3RobotSimulatorClientAPI_NoGUI.cpp +++ b/examples/RobotSimulator/b3RobotSimulatorClientAPI_NoGUI.cpp @@ -1626,7 +1626,7 @@ bool b3RobotSimulatorClientAPI_NoGUI::setPhysicsEngineParameter(struct b3RobotSi b3PhysicsParamSetDefaultFrictionERP(command,args.m_frictionERP); } - if (args.m_restitutionVelocityThreshold >= 0) { + if (args.m_solverResidualThreshold >= 0) { b3PhysicsParamSetSolverResidualThreshold(command, args.m_solverResidualThreshold); }