From 1ec24a08539cdd6dc43b23ab303f5ed0c9efb156 Mon Sep 17 00:00:00 2001 From: erwincoumans Date: Fri, 11 May 2018 19:35:27 -0700 Subject: [PATCH] fix PyBullet.applyExternalTorque for links (instead of base) --- examples/pybullet/pybullet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }