Contents

box(size:)

Creates a box mesh with vertices positioned such that the origin is at the center, with faces oriented outward.

Declaration

static func box(size: SIMD3<Float>) -> Self

Parameters

  • size:

    The width, height, and depth of the box, in meters.

Discussion

Use this factory method for objects that are in the scene rather than defining the scene, or when combining multiple reverb meshes to define a space (for example, separate entities for the floor, ceiling, and walls of a room).

See Also

Creating standard room shapes