Skip to main content

AnimationSystem

Animation system for updating time-based animations.

Updates all entities with AnimationComponent, handling timing, looping, and ping-pong behavior.


Namespace: enjin2

Header: include/enjin2/ui/systems.hpp

Public Methods

virtual void update(float dt) override

Update all animations.

dtTime since last update in seconds


virtual int getPriority() const override const

Get system priority (animations should run early)

Priority value


Private Methods

void updateAnimation(AnimationComponent &animation, float dt)

Update individual animation component.

animationAnimation to update dtDelta time in seconds