Contents

generateSphere(radius:)

Creates a sphere shape with the specified radius.

Declaration

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

Parameters

  • radius:

    The radius of the sphere in meters.

Return Value

The new sphere centered at the local origin.

Discussion