Update createTexturedMeshVisualShape.py

This commit is contained in:
NiranthS 2020-04-23 23:01:42 +05:30 committed by GitHub
parent 7807de7fa6
commit 09ed4d54de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
import pybullet as p
import time
import math
import pybullet_data
def getRayFromTo(mouseX, mouseY):
@ -35,6 +36,7 @@ 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")