Contents

zRotation(_:)

Creates a constraint that limits the orientation of a node.

Declaration

class func zRotation(_ zRange: SKRange) -> Self

Parameters

  • zRange:

    A range value that specifies the minimum and maximum values of the node’s Zrotation property.

Mentioned in

Return Value

A new constraint.

Discussion

Each time when constraints are applied, the node’s zRotation property is clamped so that it is within the specified range.

See Also

Creating Orientation Constraints