편집

다음을 통해 공유


SKConstraint.CreateOrientToNode(SKNode, SKRange) Method

Definition

Creates a rotation constraint that causes a node to face within radians away from a line to node.

[Foundation.Export("orientToNode:offset:")]
public static SpriteKit.SKConstraint CreateOrientToNode (SpriteKit.SKNode node, SpriteKit.SKRange radians);
static member CreateOrientToNode : SpriteKit.SKNode * SpriteKit.SKRange -> SpriteKit.SKConstraint

Parameters

node
SKNode
radians
SKRange

Returns

Attributes

Applies to