generateConvex(from:)
Creates a convex shape from the given points.
Declaration
@MainActor @preconcurrency static func generateConvex(from points: [SIMD3<Float>]) -> ShapeResourceParameters
- 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.