From 8c76b2ced2cabd990effff4aed86021ea5ed1114 Mon Sep 17 00:00:00 2001 From: NiranthS <44475481+NiranthS@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:16:14 +0530 Subject: [PATCH] Update load_soft_body.py --- examples/pybullet/examples/load_soft_body.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/pybullet/examples/load_soft_body.py b/examples/pybullet/examples/load_soft_body.py index 3c55ca2e6..04cccfecc 100644 --- a/examples/pybullet/examples/load_soft_body.py +++ b/examples/pybullet/examples/load_soft_body.py @@ -1,7 +1,11 @@ import pybullet as p from time import sleep +import pybullet_data + physicsClient = p.connect(p.GUI) + +p.setAdditionalSearchPath(pybullet_data.getDataPath()) p.setGravity(0, 0, -10) planeId = p.loadURDF("plane.urdf", [0,0,-2]) boxId = p.loadURDF("cube.urdf", [0,3,2],useMaximalCoordinates = True)