<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/OrientedBoundingBox",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation19OrientedBoundingBoxV"
  },
  "title" : "OrientedBoundingBox"
}
-->

# OrientedBoundingBox

Representation for an oriented bounding box.
Uses a combination of an axis-aligned bounding box and a rotation vector around
the centroid of the said axis-aligned bounding box to represent an oriented bounding box.

```
struct OrientedBoundingBox
```

## Topics

### Initializers

[`init(orientation: simd_quatf, boundingBox: BoundingBox)`](/documentation/RealityKit/OrientedBoundingBox/init(orientation:boundingBox:))

### Instance Properties

[`var boundingBox: BoundingBox`](/documentation/RealityKit/OrientedBoundingBox/boundingBox)

Axis aligned bounding box

[`var orientation: simd_quatf`](/documentation/RealityKit/OrientedBoundingBox/orientation)

Orientation (rotation) of the bounding box

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

---

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)