Page 1 of 1

Create Half Cylinder in PyBullet

Posted: Mon Jan 09, 2023 1:05 am
by Aurora7979
Hi,

I would like to ask if it is possible to use the PyBullet function createCollisionShape to create a half cylinder in PyBullet? If so, how should I do that?

Or, is there any other function in PyBullet that can help me create a half cylinder?

I am trying to connect a half cylinder body with my existing robot structure, but I do not know how to create that in PyBullet.

Thank you very much for the help!

Re: Create Half Cylinder in PyBullet

Posted: Thu Mar 06, 2025 6:16 am
by otis
PyBullet’s `createCollisionShape` doesn’t directly support half cylinders, but you can create one by modeling it as a mesh in a tool like Blender,Block Blast exporting it as an `.obj` file, and loading it with `GEOM_MESH` in PyBullet.