---
title: SCNPhysicsShape.Option
framework: scenekit
role: symbol
role_heading: Structure
path: scenekit/scnphysicsshape/option
---

# SCNPhysicsShape.Option

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

## Declaration

```swift
struct Option
```

## Discussion

Discussion When SceneKit creates a shape from a hierarchy of nodes containing multiple geometries, the keepAsCompound option takes precedence over the type option. For example, if you have a node hierarchy containing several geometries, setting the the type option to boundingBox and the keepAsCompound option to 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](scenekit/scnphysicsshape/option/collisionmargin.md)
- [keepAsCompound](scenekit/scnphysicsshape/option/keepascompound.md)
- [scale](scenekit/scnphysicsshape/option/scale.md)
- [type](scenekit/scnphysicsshape/option/type.md)
- [SCNPhysicsShape.ShapeType](scenekit/scnphysicsshape/shapetype.md)

### Initializers

- [init(rawValue:)](scenekit/scnphysicsshape/option/init(rawvalue:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
