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

# init(polygonFrom:)

Creates a polygonal physics body.

```
init(polygonFrom path: CGPath)
```

## Parameters

`path`

A convex polygonal path with counterclockwise winding and no self intersections. The points are specified relative to the owning node’s origin.

## Return Value

A new volume-based physics body.

---

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)