---
title: rotation
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnnode/rotation
---

# rotation

The node’s orientation, expressed as a rotation angle about an axis. Animatable.

## Declaration

```swift
var rotation: SCNVector4 { get set }
```

## Discussion

Discussion The four-component rotation vector specifies the direction of the rotation axis in the first three components and the angle of rotation (in radians) in the fourth. The default rotation is the zero vector, specifying no rotation. Rotation is applied relative to the node’s pivot property. The rotation, eulerAngles, and orientation properties all affect the rotational aspect of the node’s transform property. Any change to one of these properties is reflected in the others. You can animate changes to this property’s value. See Animating SceneKit Content.

## See Also

### Related Documentation

- [simdRotation](scenekit/scnnode/simdrotation.md)

### Managing the Node’s Transform (SceneKit Types)

- [transform](scenekit/scnnode/transform.md)
- [position](scenekit/scnnode/position.md)
- [eulerAngles](scenekit/scnnode/eulerangles.md)
- [orientation](scenekit/scnnode/orientation.md)
- [scale](scenekit/scnnode/scale.md)
- [pivot](scenekit/scnnode/pivot.md)
