diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index 71813938f..fb6078865 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -1466,7 +1466,7 @@ static PyObject* pybullet_setPhysicsEngineParameter(PyObject* self, PyObject* ar b3PhysicsParamSetNumSolverIterations(command, numSolverIterations); } - if (solverResidualThreshold) + if (solverResidualThreshold>=0) { b3PhysicsParamSetSolverResidualThreshold(command, solverResidualThreshold); }