SKConstraint.CreateDistance Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateDistance(SKRange, CGPoint) |
Creates a constraint that keeps a node within a specified range of a |
CreateDistance(SKRange, SKNode) |
Creates a constraint that keeps a node within a specified range of |
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