diff --git a/examples/pybullet/examples/vrEvent.py b/examples/pybullet/examples/vrEvent.py index 562b37cc0..068b02552 100644 --- a/examples/pybullet/examples/vrEvent.py +++ b/examples/pybullet/examples/vrEvent.py @@ -4,6 +4,7 @@ # Line width can be changed import pybullet as p +import pybullet_data CONTROLLER_ID = 0 POSITION = 1 @@ -13,11 +14,14 @@ BUTTONS = 6 ANALOG_AXIS = 8 #assume that the VR physics server is already started before + c = p.connect(p.SHARED_MEMORY) print(c) if (c < 0): p.connect(p.GUI) +p.setAdditionalSearchPath(pybullet_data.getDataPath()) + p.setInternalSimFlags(0) #don't load default robot assets etc p.resetSimulation() p.loadURDF("plane.urdf")