From e9163d0987f46218a5eadda9f41140ea373c644e Mon Sep 17 00:00:00 2001 From: NiranthS <44475481+NiranthS@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:10:49 +0530 Subject: [PATCH] Update hello_pybullet.py --- examples/pybullet/examples/hello_pybullet.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/pybullet/examples/hello_pybullet.py b/examples/pybullet/examples/hello_pybullet.py index 389f2dc67..fdca83cce 100644 --- a/examples/pybullet/examples/hello_pybullet.py +++ b/examples/pybullet/examples/hello_pybullet.py @@ -1,8 +1,12 @@ 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") cubeStartPos = [0, 0, 1]