mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-09-05 18:08:32 +00:00
16 lines
316 B
Python
16 lines
316 B
Python
import pybullet as p
|
|
import time
|
|
|
|
p.connect(p.GRAPHICS_SERVER_TCP)
|
|
import pybullet_data as pd
|
|
p.setAdditionalSearchPath(pd.getDataPath())
|
|
|
|
p.loadURDF("plane.urdf")
|
|
p.loadURDF("r2d2.urdf", [0,0,3])
|
|
p.setGravity(0,0,-10)
|
|
gravId = p.addUserDebugParameter("gravity",0,10,0)
|
|
while p.isConnected():
|
|
p.stepSimulation()
|
|
|
|
|