Vizard 8 » Command Index » Vizard objects » node3d » <node3d:avatar>.setAnimationSpeed
8.0

<node3d:avatar>.setAnimationSpeed

Set the animation speed

<node3d:avatar>.setAnimationSpeed(  
animation  
factor  
)  
animation
Animation number
factor
Time factor

Remarks

This command will set the speed of the specified animation. The speed is adjusted by multiplying the elapsed time with the given factor.

If the animation is 0, then this command will set the speed of the avatars animation cycle.

If the animation ID is valid and it is currently being executed, then this command will set the speed of the execution.

Return Value

None

Example

Setting Cycle Speed
#Cycle animation 2
avatar.state(2)

#Triple the speed of the animation cycle
avatar.setAnimationSpeed(0,3)


Setting Action Speed
#Execute animation 5
avatar.execute(5)

#Pause the execution of animation 5
avatar.setAnimationSpeed(5,0)

See also

<node3d:avatar>.getAnimationSpeed
<node3d:avatar>.getAnimationTime
<node3d:avatar>.setAnimationTime