From 588bd007e794796e8874695514233df712dc2e23 Mon Sep 17 00:00:00 2001 From: Mat Kelcey Date: Wed, 13 Jul 2016 21:12:39 -0700 Subject: [PATCH] bug fix for pybullet_applyExternalForce where linkId wasn't actually being used in b3ApplyExternalForce call --- 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 12a7c6bba..2a2d9b2d1 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -1238,7 +1238,7 @@ static PyObject* pybullet_applyExternalForce(PyObject* self, PyObject* args) return NULL; } command = b3ApplyExternalForceCommandInit(sm); - b3ApplyExternalForce(command,objectUniqueId,-1,force,position, flags); + b3ApplyExternalForce(command, objectUniqueId, linkIndex, force, position, flags); statusHandle = b3SubmitClientCommandAndWaitStatus(sm, command); } Py_INCREF(Py_None);