mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-10-06 17:05:32 +00:00
Merge pull request #2762 from NiranthS/master
Error running script in Windows
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import pybullet as p
|
||||
import time
|
||||
import math
|
||||
import pybullet_data
|
||||
|
||||
|
||||
|
||||
def getRayFromTo(mouseX, mouseY):
|
||||
@@ -36,6 +38,7 @@ def getRayFromTo(mouseX, mouseY):
|
||||
cid = p.connect(p.GUI)
|
||||
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")
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import pybullet as p
|
||||
import time
|
||||
import math
|
||||
import pybullet_data
|
||||
|
||||
useGui = True
|
||||
|
||||
@@ -8,6 +9,7 @@ if (useGui):
|
||||
p.connect(p.GUI)
|
||||
else:
|
||||
p.connect(p.DIRECT)
|
||||
p.setAdditionalSearchPath(pybullet_data.getDataPath())
|
||||
|
||||
p.configureDebugVisualizer(p.COV_ENABLE_GUI, 0)
|
||||
#p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,0)
|
||||
|
||||
Reference in New Issue
Block a user