Merge pull request #2528 from jackson-waschura/master

Actually use self collisions when specified
This commit is contained in:
erwincoumans authored and GitHub committed 2019-12-09 09:35:06 -08:00
commit 6c722f8f94
1 file changed
+4
+4
View File
@@ -2065,6 +2065,10 @@ static PyObject* pybullet_loadSoftBody(PyObject* self, PyObject* args, PyObject*
{
b3LoadSoftBodyAddNeoHookeanForce(command, NeoHookeanMu, NeoHookeanLambda, NeoHookeanDamping);
}
if (useSelfCollision)
{
b3LoadSoftBodySetSelfCollision(command, useSelfCollision);
}
b3LoadSoftBodySetFrictionCoefficient(command, frictionCoeff);
statusHandle = b3SubmitClientCommandAndWaitStatus(sm, command);
statusType = b3GetStatusType(statusHandle);