Düzenle

Aracılığıyla paylaş


SKConstraint.CreateDistance Method

Definition

Overloads

CreateDistance(SKRange, CGPoint)

Creates a constraint that keeps a node within a specified range of a point.

CreateDistance(SKRange, SKNode)

Creates a constraint that keeps a node within a specified range of node.

CreateDistance(SKRange, CGPoint, SKNode)

CreateDistance(SKRange, CGPoint)

Creates a constraint that keeps a node within a specified range of a point.

[Foundation.Export("distance:toPoint:")]
public static SpriteKit.SKConstraint CreateDistance (SpriteKit.SKRange range, CoreGraphics.CGPoint point);
static member CreateDistance : SpriteKit.SKRange * CoreGraphics.CGPoint -> SpriteKit.SKConstraint

Parameters

range
SKRange
point
CGPoint

Returns

Attributes

Applies to

CreateDistance(SKRange, SKNode)

Creates a constraint that keeps a node within a specified range of node.

[Foundation.Export("distance:toNode:")]
public static SpriteKit.SKConstraint CreateDistance (SpriteKit.SKRange range, SpriteKit.SKNode node);
static member CreateDistance : SpriteKit.SKRange * SpriteKit.SKNode -> SpriteKit.SKConstraint

Parameters

range
SKRange
node
SKNode

Returns

Attributes

Applies to

CreateDistance(SKRange, CGPoint, SKNode)

[Foundation.Export("distance:toPoint:inNode:")]
public static SpriteKit.SKConstraint CreateDistance (SpriteKit.SKRange range, CoreGraphics.CGPoint point, SpriteKit.SKNode node);
static member CreateDistance : SpriteKit.SKRange * CoreGraphics.CGPoint * SpriteKit.SKNode -> SpriteKit.SKConstraint

Parameters

range
SKRange
point
CGPoint
node
SKNode

Returns

Attributes

Applies to