mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 13:50:04 +00:00
add body type info to dynamics info
This commit is contained in:
parent
27bf4d3372
commit
e74ffa2f65
@ -5,6 +5,7 @@ physicsClient = p.connect(p.DIRECT)
|
||||
|
||||
p.setGravity(0, 0, -10)
|
||||
planeId = p.loadURDF("plane.urdf")
|
||||
boxId = p.loadURDF("cube.urdf", useMaximalCoordinates = True)
|
||||
bunnyId = p.loadSoftBody("bunny.obj")
|
||||
#meshData = p.getMeshData(bunnyId)
|
||||
#print("meshData=",meshData)
|
||||
@ -14,6 +15,10 @@ useRealTimeSimulation = 1
|
||||
if (useRealTimeSimulation):
|
||||
p.setRealTimeSimulation(1)
|
||||
|
||||
print(p.getDynamicsInfo(planeId, -1))
|
||||
print(p.getDynamicsInfo(bunnyId, 0))
|
||||
print(p.getDynamicsInfo(boxId, -1))
|
||||
|
||||
while p.isConnected():
|
||||
p.setGravity(0, 0, -10)
|
||||
if (useRealTimeSimulation):
|
||||
|
Loading…
Reference in New Issue
Block a user