Contents

generateSphere(radius:)

Creates a new sphere mesh with the specified radius.

Declaration

@MainActor @preconcurrency static func generateSphere(radius: Float) -> MeshResource

Parameters

  • radius:

    The radius, in meters, of the sphere.

Return Value

A sphere mesh.

Discussion

The sphere is centered at the entity’s origin.

See Also

Creating a primitive shape