createConvexMesh

Creates a convex mesh-shaped ShapeResource from the given mesh.

Performance Note:

Use this only when primitive shapes are insufficient and ensure the input mesh has a low vertex count.

Return

A new ShapeResource representing the convex mesh.

Parameters

mesh

A mesh representing the convex polyhedron. Use meshes with a small number of vertices to maintain performance.