Files
bullet3/examples/pybullet/examples/graphicsServer.py

8 lines
170 B
Python

import pybullet as p
import time
p.connect(p.GRAPHICS_SERVER)
#p.connect(p.GRAPHICS_SERVER_MAIN_THREAD)
while p.isConnected():
p.stepSimulation()
time.sleep(1./240.)