Contents

zRotation

The Euler rotation about the z axis (in radians).

Declaration

var zRotation: CGFloat { get set }

Mentioned in

Discussion

The default value is 0.0, which indicates no rotation. A positive value indicates a counterclockwise rotation. When the coordinate system is rotated, it affects the node and its descendants. The rotation affects the node’s frame property, hit testing, rendering, and other similar characteristics.

See Also

Scaling and Rotating