setAnimationSpeed

GraphicsModuleInterface::setAnimationSpeed

Sets the speed of an Animation played by an Entity.

Declaration

virtual void setAnimationCurrentTime(Entity entity, float newSpeed) = 0;

Parameters

Name

Type

Description

entity

Entity

The Entity the Animation is played on. It must have a Renderable Component.

newSpeed

float

The speed to play the current Animation at.

Returns

None.

Notes

If newSpeed is negative, the animation plays in reverse.