<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKPhysicsBody/init(edgeChainFrom:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKPhysicsBody(cm)bodyWithEdgeChainFromPath:"
  },
  "title" : "init(edgeChainFrom:)"
}
-->

# init(edgeChainFrom:)

Creates an edge chain from a path.

```
init(edgeChainFrom path: CGPath)
```

## Parameters

`path`

A Core Graphics path. The points are specified relative to the owning node’s origin. The path must not intersect itself.

## Return Value

A new edge-based physics body.

## Discussion

An edge has no volume or mass and is always treated as if the [`isDynamic`](/documentation/SpriteKit/SKPhysicsBody/isDynamic) property is equal to <doc://com.apple.documentation/documentation/Swift/false>. Edges may only collide with volume-based physics bodies.

---

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)