편집

다음을 통해 공유


SKPhysicsBody.CreateEdgeLoop Method

Definition

Overloads

CreateEdgeLoop(CGPath)

Creates a closed edge loop from the specified path, closing the path if necessary.

CreateEdgeLoop(CGRect)

Creates a closed edge loop from the specified rectangle.

CreateEdgeLoop(CGPath)

Creates a closed edge loop from the specified path, closing the path if necessary.

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

Parameters

path
CGPath

Returns

Attributes

Applies to

CreateEdgeLoop(CGRect)

Creates a closed edge loop from the specified rectangle.

[Foundation.Export("bodyWithEdgeLoopFromRect:")]
public static SpriteKit.SKPhysicsBody CreateEdgeLoop (CoreGraphics.CGRect rect);
static member CreateEdgeLoop : CoreGraphics.CGRect -> SpriteKit.SKPhysicsBody

Parameters

rect
CGRect

Returns

Attributes

Applies to