generateConvex(from:)
Creates a convex shape from the given mesh.
Declaration
@MainActor @preconcurrency static func generateConvex(from mesh: MeshResource) -> ShapeResourceParameters
- mesh:
A mesh with the shape of the convex polyhedron. Use meshes with a small number of vertices to avoid hurting performance.
Return Value
The new shape.