<!--
{
  "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/box(size:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation18ReverbMeshResourceC3box4sizeACXDs5SIMD3VySfG_tFZ"
  },
  "title" : "box(size:)"
}
-->

# box(size:)

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

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

---

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)