From 09630941dab0c440c84faea85b81d17eb81fc43c Mon Sep 17 00:00:00 2001 From: NiranthS <44475481+NiranthS@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:02:45 +0530 Subject: [PATCH] Update createVisualShapeArray.py --- examples/pybullet/examples/createVisualShapeArray.py | 3 +++ 1 file changed, 3 insertions(+) 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")