mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-05 23:31:06 +00:00
revert testing example
This commit is contained in:
parent
e4a5f9e06e
commit
ecc28d6472
@ -5,7 +5,6 @@ physicsClient = p.connect(p.DIRECT)
|
|||||||
|
|
||||||
p.setGravity(0, 0, -10)
|
p.setGravity(0, 0, -10)
|
||||||
planeId = p.loadURDF("plane.urdf")
|
planeId = p.loadURDF("plane.urdf")
|
||||||
boxId = p.loadURDF("cube.urdf", useMaximalCoordinates = True)
|
|
||||||
bunnyId = p.loadSoftBody("bunny.obj")
|
bunnyId = p.loadSoftBody("bunny.obj")
|
||||||
#meshData = p.getMeshData(bunnyId)
|
#meshData = p.getMeshData(bunnyId)
|
||||||
#print("meshData=",meshData)
|
#print("meshData=",meshData)
|
||||||
@ -15,10 +14,6 @@ useRealTimeSimulation = 1
|
|||||||
if (useRealTimeSimulation):
|
if (useRealTimeSimulation):
|
||||||
p.setRealTimeSimulation(1)
|
p.setRealTimeSimulation(1)
|
||||||
|
|
||||||
print(p.getDynamicsInfo(planeId, -1))
|
|
||||||
print(p.getDynamicsInfo(bunnyId, 0))
|
|
||||||
print(p.getDynamicsInfo(boxId, -1))
|
|
||||||
|
|
||||||
while p.isConnected():
|
while p.isConnected():
|
||||||
p.setGravity(0, 0, -10)
|
p.setGravity(0, 0, -10)
|
||||||
if (useRealTimeSimulation):
|
if (useRealTimeSimulation):
|
||||||
|
Loading…
Reference in New Issue
Block a user