---
title: zRotation
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/sknode/zrotation
---

# zRotation

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

## Declaration

```swift
var zRotation: CGFloat { get set }
```

## Mentioned in

About Node Property Propagation About SpriteKit Coordinate Systems Getting Started with a Camera Getting Started with Nodes Making Physics Bodies Move

## Discussion

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(_:)](spritekit/sknode/setscale(_:).md)
- [xScale](spritekit/sknode/xscale.md)
- [yScale](spritekit/sknode/yscale.md)
