Method b3CreateMeshShape
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
b3CreateMeshShape(b3BodyId, b3ShapeDef*, b3MeshData*, Vector3)
Create a mesh hull shape and attach it to a body. The shape definition is fully cloned but the mesh is not. Contacts are not created until the next time step. Mesh collision only creates contacts on static bodies.
public static extern b3ShapeId b3CreateMeshShape(b3BodyId bodyId, b3ShapeDef* def, b3MeshData* mesh, Vector3 scale)Parameters
bodyIdb3BodyId-
See the Box3D documentation.
defb3ShapeDef*-
See the Box3D documentation.
meshb3MeshData*-
See the Box3D documentation.
scaleVector3-
See the Box3D documentation.
Returns
- b3ShapeId
-
the shape id for accessing the shape
Remarks
Warning: this holds reference to the input mesh data which must remain valid for the lifetime of this shape @warning this holds reference to the input mesh data which must remain valid for the lifetime of this shape