<!--
{
  "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/SCNPhysicsShape/Option",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:@T@SCNPhysicsShapeOption"
  },
  "title" : "SCNPhysicsShape.Option"
}
-->

# SCNPhysicsShape.Option

Keys for the options dictionary used when creating a physics shape.

```
struct Option
```

## Discussion

When SceneKit creates a shape from a hierarchy of nodes containing multiple geometries, the [`keepAsCompound`](/documentation/SceneKit/SCNPhysicsShape/Option/keepAsCompound) option takes precedence over the [`type`](/documentation/SceneKit/SCNPhysicsShape/Option/type) option.

For example, if you have a node hierarchy containing several geometries, setting the the [`type`](/documentation/SceneKit/SCNPhysicsShape/Option/type) option to [`boundingBox`](/documentation/SceneKit/SCNPhysicsShape/ShapeType/boundingBox) and the [`keepAsCompound`](/documentation/SceneKit/SCNPhysicsShape/Option/keepAsCompound) option to <doc://com.apple.documentation/documentation/Swift/true> creates a shape that is a combination of several boxes. This approach can provide better simulation performance than converting the entire node hierarchy to a single concave polyhedron shape.

## Topics

### Type Properties

[`collisionMargin`](/documentation/SceneKit/SCNPhysicsShape/Option/collisionMargin)

[`keepAsCompound`](/documentation/SceneKit/SCNPhysicsShape/Option/keepAsCompound)

An option for selecting whether to create a group of independent shapes or combine them into a single shape.

[`scale`](/documentation/SceneKit/SCNPhysicsShape/Option/scale)

An option for selecting the scale factor of the shape relative to the local coordinate space of the node containing it.

[`type`](/documentation/SceneKit/SCNPhysicsShape/Option/type)

An option for selecting the level of detail at which to create shapes from geometry.

[`SCNPhysicsShape.ShapeType`](/documentation/SceneKit/SCNPhysicsShape/ShapeType)

Values for the [`type`](/documentation/SceneKit/SCNPhysicsShape/Option/type) key specifying the level of detail that SceneKit uses when creating a physics shape based on a geometry.



---

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)