Contents

init(polygonFrom:)

Creates a polygonal physics body.

Declaration

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.

Mentioned in

Return Value

A new volume-based physics body.

See Also

Creating a Body from a Shape