axis
A 3D vector that points in the direction of the axis around which to rotate.
Declaration
var axis: SIMD3<Float> { get set }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)