1 2 3 4 5 6 7 8
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.)