Contents

generateBox(size:)

Creates a box shape with the specified extent.

Declaration

@MainActor @preconcurrency static func generateBox(size: SIMD3<Float>) -> ShapeResource

Parameters

  • size:

    The box extent in meters along the local axes.

Return Value

The new box centered at the local origin and aligned with the local axes.

Discussion

See Also

Generating boxes