Creates an action that rotates the node by an angle around a specified axis.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The amount to rotate the node counterclockwise around the specified axis, in radians.
A vector in the node’s local coordinate space whose direction specifies the axis of rotation.
The duration, in seconds, of the animation.
A new action object.
When the action executes, the node’s
rotation property animates to the new angle.
This action is reversible; the reverse is created as if the following code had been executed: