From 3be2ce0adfef9a61115d36e7c68e5f0b6009d0ae Mon Sep 17 00:00:00 2001 From: Chuyuan Fu Date: Fri, 3 May 2019 11:56:13 -0700 Subject: [PATCH] set softbody start position and orientation in pybullet --- examples/pybullet/pybullet.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index f8f79ae6d..5b8ca6e5b 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -1997,6 +1997,9 @@ static PyObject* pybullet_loadSoftBody(PyObject* self, PyObject* args, PyObject* b3SharedMemoryCommandHandle command = b3LoadSoftBodyCommandInit(sm, fileName); + b3LoadSoftBodySetStartPosition(command, startPos[0], startPos[1], startPos[2]); + b3LoadSoftBodySetStartOrientation(command, startOrn[0], startOrn[1], startOrn[2], startOrn[3]); + if (scale > 0) { b3LoadSoftBodySetScale(command, scale);