---
title: keepAsCompound
framework: scenekit
role: symbol
role_heading: Type Property
path: scenekit/scnphysicsshape/option/keepascompound
---

# keepAsCompound

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

## Declaration

```swift
static let keepAsCompound: SCNPhysicsShape.Option
```

## Discussion

Discussion The value for this key is an NSNumber object containing a Boolean value. The default value is true, specifying that SceneKit convert separate geometries into separate shapes and join the resulting shapes. If false, SceneKit creates a single shape approximating the combined form of the geometries.

## See Also

### Type Properties

- [collisionMargin](scenekit/scnphysicsshape/option/collisionmargin.md)
- [scale](scenekit/scnphysicsshape/option/scale.md)
- [type](scenekit/scnphysicsshape/option/type.md)
- [SCNPhysicsShape.ShapeType](scenekit/scnphysicsshape/shapetype.md)
