PyBulletClient.convert_mesh_to_body
-
PyBulletClient.
convert_mesh_to_body
(mesh, frame, _name=None, concavity=False, mass=0)[source] Convert compas mesh and its frame to a pybullet body
- Parameters
mesh (
compas.datastructures.Mesh
)frame (
compas.geometry.Frame
)_name (
str
, optional) – Name of the mesh for tagging in PyBullet’s GUIconcavity (
bool
, optional) – WhenFalse
(the default), the mesh will be loaded as its convex hull for collision checking purposes. WhenTrue
, a non-static mesh will be decomposed into convex parts using v-HACD.mass (
float
, optional) – Mass of the body to be created, in kg. If0
mass is given (the default), the object is static.
- Returns