Type Method


Creates an edge chain from a path.


+ (SKPhysicsBody *)bodyWithEdgeChainFromPath:(CGPathRef)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.


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

See Also

Creating an Edge-Based Physics Body

Creating an Edge Loop Around a Scene

Border your scene with an obstacle that physics bodies cannot penetrate.

+ bodyWithEdgeLoopFromRect:

Creates an edge loop from a rectangle.

+ bodyWithEdgeFromPoint:toPoint:

Creates an edge between two points.

+ bodyWithEdgeLoopFromPath:

Creates an edge loop from a path.