generateSphere(radius:)
Creates a new sphere mesh with the specified radius.
Declaration
@MainActor @preconcurrency static func generateSphere(radius: Float) -> MeshResourceParameters
- radius:
The radius, in meters, of the sphere.
Return Value
A sphere mesh.
Discussion
The sphere is centered at the entity’s origin.