diff --git a/examples/pybullet/examples/createVisualShapeArray.py b/examples/pybullet/examples/createVisualShapeArray.py index 713738eb1..6156d808c 100644 --- a/examples/pybullet/examples/createVisualShapeArray.py +++ b/examples/pybullet/examples/createVisualShapeArray.py @@ -1,6 +1,7 @@ import pybullet as p import time import math +import pybullet_data def getRayFromTo(mouseX, mouseY): @@ -35,6 +36,8 @@ def getRayFromTo(mouseX, mouseY): cid = p.connect(p.SHARED_MEMORY) if (cid < 0): p.connect(p.GUI) + +p.setAdditionalSearchPath(pybullet_data.getDataPath()) p.setPhysicsEngineParameter(numSolverIterations=10) p.setTimeStep(1. / 120.) logId = p.startStateLogging(p.STATE_LOGGING_PROFILE_TIMINGS, "visualShapeBench.json")