Vizard 8 » Command Index » Vizard objects » animationpath » <animationpath>.setSpeed
8.0

<animationpath>.setSpeed

Set the speed factor of the animation path

<animationpath>.setSpeed(  
value  
)  
value
The speed ratio.

A value of 2 will double the animation speed.

A value of 0.5 will slow down the animation speed by half.

Remarks

This will apply a scale factor to the elapsed time when updating the animation path every frame.

Setting the speed will not affect the reported duration of the animation path.

The speed will be ignored when manually setting the time (<animationpath>.setTime).

Return Value

None

Example

path = viz.addAnimationPath()

#Double the speed of the animation path
path.setSpeed(2)

See also

<animationpath>.getSpeed
<animationpath>.setConstantSpeed