scale(by:duration:)
Creates an action that uniformly changes the scale factor of a node by a relative value.
Declaration
class func scale(by scale: CGFloat, duration sec: TimeInterval) -> SCNActionParameters
- scale:
The amount of change to make to all three components of the node’s scale.
- sec:
The duration, in seconds, of the animation.
Return Value
A new action object.
Discussion
When the action executes, the node’s scale property animates to the new value.
This action is reversible; the reverse is created as if the following code had been executed:
[SCNAction scaleBy: -scale duration: sec];