shoebox(size:)
Creates a box mesh with the vertices positioned such that the bottom surface is at y=0, with faces oriented inward.
Declaration
static func shoebox(size: SIMD3<Float>) -> SelfParameters
- size:
The width, height, and depth of the box, in meters.
Discussion
Use this factory method for objects that define the scene rather than objects within it — for example, the enclosing walls, floor, and ceiling of a room.
let room = ReverbMeshResource.shoebox(size: [4, 3, 5])