PYBULLET: Add DIFFERENT collision shapes in custom multibody design

Official Python bindings with a focus on reinforcement learning and robotics.
Post Reply
nsane4stargate
Posts: 1
Joined: Thu Jun 21, 2018 9:35 pm

PYBULLET: Add DIFFERENT collision shapes in custom multibody design

Post by nsane4stargate » Thu Jun 21, 2018 9:43 pm

Hi everyone.

Hoping someone could help me out with my conundrum. I am trying to add different collisions shapes together to make my own custom robot in pyBullet. However, I am on the verge of giving up on this because I have no idea how to use the createMultiBody() function to create a multibody with different shapes. It only works when all the shapes are the same. Any help would be greatly appreciated.

User avatar
Erwin Coumans
Site Admin
Posts: 4105
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: PYBULLET: Add DIFFERENT collision shapes in custom multibody design

Post by Erwin Coumans » Tue Jun 26, 2018 4:54 am

See the createVisualShapeArray.py example. You can create an array of collision shapes and visual shapes.

Post Reply