---
title: axis
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/orbitanimation/axis
---

# axis

A 3D vector that points in the direction of the axis around which to rotate.

## Declaration

```swift
var axis: SIMD3<Float> { get set }
```

## Discussion

Discussion You can rotate an object around any axis. For example, if you set a 1 in the vector’s x-coordinate, rotation occurs around the x-axis, as in the following code. orbitAnimation.axis = SIMD3<Float>(x: 1.0, y: 0.0, z: 0.0)

## See Also

### Configuring the animation

- [startTransform](realitykit/orbitanimation/starttransform.md)
- [name](realitykit/orbitanimation/name.md)
- [bindTarget](realitykit/orbitanimation/bindtarget.md)
- [blendLayer](realitykit/orbitanimation/blendlayer.md)
- [rotationCount](realitykit/orbitanimation/rotationcount.md)
- [spinClockwise](realitykit/orbitanimation/spinclockwise.md)
- [orientToPath](realitykit/orbitanimation/orienttopath.md)
- [additive](realitykit/orbitanimation/additive.md)
