diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index 405d849ce..7ef708035 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -7599,7 +7599,7 @@ static PyObject* pybullet_applyExternalTorque(PyObject* self, PyObject* args, Py b3SharedMemoryStatusHandle statusHandle; b3SharedMemoryCommandHandle command = b3ApplyExternalForceCommandInit(sm); - b3ApplyExternalTorque(command, objectUniqueId, -1, torque, flags); + b3ApplyExternalTorque(command, objectUniqueId, linkIndex, torque, flags); statusHandle = b3SubmitClientCommandAndWaitStatus(sm, command); } }