Type Method

scaleBy:duration:

Creates an action that uniformly changes the scale factor of a node by a relative value.

Declaration

+ (SCNAction *)scaleBy:(CGFloat)scale duration:(NSTimeInterval)sec;

Parameters

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];

See Also

Creating Actions That Change a Node’s Scale

+ scaleTo:duration:

Creates an action that uniformly changes the scale factor of a node to an absolute value.