Düzenle

Aracılığıyla paylaş


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