Skip to content

Commit

Permalink
PyBullet: fix createMultiBodyBatch.py example
Browse files Browse the repository at this point in the history
  • Loading branch information
erwincoumans committed Sep 13, 2019
1 parent b86bf6c commit 95a7488
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/pybullet/examples/createMultiBodyBatch.py
Expand Up @@ -117,14 +117,14 @@
batchPositions.append(
[x * meshScale[0] * 5.5, y * meshScale[1] * 5.5, (0.5 + z) * meshScale[2] * 2.5])

bodyUid = p.createMultiBody(baseMass=0,
bodyUids = p.createMultiBody(baseMass=0,
baseInertialFramePosition=[0, 0, 0],
baseCollisionShapeIndex=collisionShapeId,
baseVisualShapeIndex=visualShapeId,
basePosition=[0, 0, 2],
batchPositions=batchPositions,
useMaximalCoordinates=True)
p.changeVisualShape(bodyUid, -1, textureUniqueId=texUid)
p.changeVisualShape(bodyUids[0], -1, textureUniqueId=texUid)

p.syncBodyInfo()
print("numBodies=", p.getNumBodies())
Expand Down

0 comments on commit 95a7488

Please sign in to comment.