rotate(toAngle:duration:shortestUnitArc:)
Creates an action that rotates the node to an absolute value.
Declaration
class func rotate(toAngle radians: CGFloat, duration: TimeInterval, shortestUnitArc: Bool) -> SKActionParameters
Return Value
A new action object.
Discussion
When the action executes, the node’s zRotation property is animated to the new angle.
This action is not reversible; the reverse of this action has the same duration but does not change anything.