Contents

generateConvex(from:)

Creates a convex shape from the given points.

Declaration

@MainActor @preconcurrency static func generateConvex(from points: [SIMD3<Float>]) -> ShapeResource

Parameters

  • points:

    An array of 3D points that define the convex polyhedron. Keep the number of points small to avoid hurting performance.

Return Value

The new shape.

See Also

Generating convex shapes