SKConstraint.CreateOrientToNode(SKNode, SKRange) 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.
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