bug fix for pybullet_applyExternalForce where linkId wasn't actually being used in b3ApplyExternalForce call

This commit is contained in:
Mat Kelcey
2016-07-13 21:12:39 -07:00
parent 31e7f2e309
commit 588bd007e7

View File

@@ -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);