Creates an edge loop from a path.
- iOS 7.0+
- macOS 10.9+
- tvOS 9.0+
- watchOS 3.0+
A Core Graphics path. The points are specified relative to the owning node’s origin. The path must not intersect itself.
A new edge-based physics body.
If the path is not already closed, a loop is automatically created by joining the last point to the first.
An edge has no volume or mass and is always treated as if the
is property is equal to
false. Edges may only collide with volume-based physics bodies.