Instance Property

zRotation

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

Declaration

@property(nonatomic) CGFloat zRotation;

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

- setScale:

Sets the xScale and yScale properties of the node.

xScale

A scaling factor that multiplies the width of a node and its children.

yScale

A scaling factor that multiplies the height of a node and its children.