Contents

init(edgeChainFrom:)

Creates an edge chain from a path.

Declaration

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.

Mentioned in

Return Value

A new edge-based physics body.

Discussion

An edge has no volume or mass and is always treated as if the isDynamic property is equal to false. Edges may only collide with volume-based physics bodies.

See Also

Creating an Edge-Based Physics Body