<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ReverbMeshResource/shoebox(size:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation18ReverbMeshResourceC7shoebox4sizeACXDs5SIMD3VySfG_tFZ"
  },
  "title" : "shoebox(size:)"
}
-->

# shoebox(size:)

Creates a box mesh with the vertices positioned such that the bottom surface is at y=0,
with faces oriented inward.

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

## Parameters

`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.

```swift
let room = ReverbMeshResource.shoebox(size: [4, 3, 5])
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)