<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNBoundingVolume/setBoundingBoxMin:max:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(pl)SCNBoundingVolume(im)setBoundingBoxMin:max:"
  },
  "title" : "setBoundingBoxMin:max:"
}
-->

# setBoundingBoxMin:max:

Sets a custom bounding box for the object.

```
- (void) setBoundingBoxMin:(SCNVector3 *) min max:(SCNVector3 *) max;
```

## Parameters

`min`

A pointer to the minimum coordinates of the bounding box.

`max`

A pointer to the maximum coordinates of the bounding box.

## Discussion

You define a bounding box in the local coordinate space using two points identifying its corners, which implicitly determine six axis-aligned planes marking its limits. The x-, y-, and z-coordinate values of any point in the volume are each greater than those of the `min` point and less than those of the `max` point.

By default, Scene Kit automatically computes the bounding volumes of nodes and geometries and uses this information to assist in rendering. You use this method to override the default bounding box.

---

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)