mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 05:40:05 +00:00
Update configureDebugVisualizer.py
This commit is contained in:
parent
faa59f3799
commit
ade9056de2
@ -2,8 +2,10 @@ import pybullet as p
|
|||||||
import math
|
import math
|
||||||
import time
|
import time
|
||||||
dt = 1./240.
|
dt = 1./240.
|
||||||
|
import pybullet_data
|
||||||
|
|
||||||
p.connect(p.GUI)#SHARED_MEMORY_GUI)
|
p.connect(p.GUI)
|
||||||
|
p.setAdditionalSearchPath(pybullet_data.getDataPath())
|
||||||
p.loadURDF("r2d2.urdf",[0,0,1])
|
p.loadURDF("r2d2.urdf",[0,0,1])
|
||||||
p.loadURDF("plane.urdf")
|
p.loadURDF("plane.urdf")
|
||||||
p.setGravity(0,0,-10)
|
p.setGravity(0,0,-10)
|
||||||
@ -18,4 +20,4 @@ while (1):
|
|||||||
p.configureDebugVisualizer(lightPosition=[radius*math.sin(t),radius*math.cos(t),3])
|
p.configureDebugVisualizer(lightPosition=[radius*math.sin(t),radius*math.cos(t),3])
|
||||||
|
|
||||||
p.stepSimulation()
|
p.stepSimulation()
|
||||||
time.sleep(dt)
|
time.sleep(dt)
|
||||||
|
Loading…
Reference in New Issue
Block a user