<!--
{
  "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/sourceObject",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNPhysicsShape(py)sourceObject"
  },
  "title" : "sourceObject"
}
-->

# sourceObject

The object that was used to create the shape.

```
var sourceObject: Any { get }
```

## Discussion

This property, along with the [`transforms`](/documentation/SceneKit/SCNPhysicsShape/transforms) and [`options`](/documentation/SceneKit/SCNPhysicsShape/options) properties, provides the information that was used to create the shape. You can use this information, for example, to draw editing or debugging UI in your scene.

- If the shape was created with the [`init(geometry:options:)`](/documentation/SceneKit/SCNPhysicsShape/init(geometry:options:)) method, the source object is an [`SCNGeometry`](/documentation/SceneKit/SCNGeometry) object, and the [`options`](/documentation/SceneKit/SCNPhysicsShape/options) property contains the options affecting the shape’s construction from that geometry.
- If the shape was created with the [`init(node:options:)`](/documentation/SceneKit/SCNPhysicsShape/init(node:options:)) method, the source object is an [`SCNNode`](/documentation/SceneKit/SCNNode) object, and the [`options`](/documentation/SceneKit/SCNPhysicsShape/options) property contains the options affecting the shape’s construction from that node.
- If the shape was created with the [`init(shapes:transforms:)`](/documentation/SceneKit/SCNPhysicsShape/init(shapes:transforms:)) method, the source object is an array of [`SCNPhysicsShape`](/documentation/SceneKit/SCNPhysicsShape) objects and the [`transforms`](/documentation/SceneKit/SCNPhysicsShape/transforms) property describes how those shapes combine to form a compound shape.

---

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)