SKPhysicsBody.CreateBodyFromPath(CGPath) Method

Definition

Creates a new physics body from the specified path.

[Foundation.Export("bodyWithPolygonFromPath:")]
public static SpriteKit.SKPhysicsBody CreateBodyFromPath (CoreGraphics.CGPath path);
static member CreateBodyFromPath : CoreGraphics.CGPath -> SpriteKit.SKPhysicsBody

Parameters

path
CGPath

Returns

Attributes

Applies to