Upravit

Sdílet prostřednictvím


SKAction.ReachToNode Method

Definition

Overloads

ReachToNode(SKNode, SKNode, nfloat)

Creates an action that moves the node to which it is applied by rotating it, along with all nodes between it and rootNode, so that it is closer to node, in a way that moves the node at the speed that is specified by velocity.

ReachToNode(SKNode, SKNode, Double)

Creates an action that moves the node to which it is applied by rotating it, along with all nodes between it and rootNode, so that it is closer to node, over sec seconds.

ReachToNode(SKNode, SKNode, nfloat)

Creates an action that moves the node to which it is applied by rotating it, along with all nodes between it and rootNode, so that it is closer to node, in a way that moves the node at the speed that is specified by velocity.

[Foundation.Export("reachToNode:rootNode:velocity:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKAction ReachToNode (SpriteKit.SKNode node, SpriteKit.SKNode rootNode, nfloat velocity);
static member ReachToNode : SpriteKit.SKNode * SpriteKit.SKNode * nfloat -> SpriteKit.SKAction

Parameters

node
SKNode
rootNode
SKNode
velocity
nfloat

Returns

Attributes

Applies to

ReachToNode(SKNode, SKNode, Double)

Creates an action that moves the node to which it is applied by rotating it, along with all nodes between it and rootNode, so that it is closer to node, over sec seconds.

[Foundation.Export("reachToNode:rootNode:duration:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKAction ReachToNode (SpriteKit.SKNode node, SpriteKit.SKNode rootNode, double sec);
static member ReachToNode : SpriteKit.SKNode * SpriteKit.SKNode * double -> SpriteKit.SKAction

Parameters

node
SKNode
rootNode
SKNode
sec
Double

Returns

Attributes

Applies to