generateBox(width:height:depth:)
Creates a box shape with the specified dimensions.
Declaration
@MainActor @preconcurrency static func generateBox(width: Float, height: Float, depth: Float) -> ShapeResourceParameters
- width:
The extent of the box along the x-axis in meters.
- height:
The extent of the box along the y-axis in meters.
- depth:
The extent of the box along the z-axis in meters.
Return Value
The new box centered at the local origin and aligned with the local axes.