<!--
{
  "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/init(shapes:transforms:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNPhysicsShape(cm)shapeWithShapes:transforms:"
  },
  "title" : "init(shapes:transforms:)"
}
-->

# init(shapes:transforms:)

Creates a new physics shape by combining others.

```
convenience init(shapes: [SCNPhysicsShape], transforms: [NSValue]?)
```

## Parameters

`shapes`

An array of [`SCNPhysicsShape`](/documentation/SceneKit/SCNPhysicsShape) objects.

`transforms`

An array of <doc://com.apple.documentation/documentation/Foundation/NSValue> objects containing [`SCNMatrix4`](/documentation/SceneKit/SCNMatrix4-swift.struct) values, each of which is a transform for the physics shape at the corresponding index in the `shapes` parameter.

## Return Value

A new physics shape object.

## Discussion

An individual physics shape is defined in its own local coordinate space. Therefore, to describe the positions and orientations of multiple shapes relative to one another, you must use coordinate transformations.

---

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)