Module state

Module state 

Source
Expand description

State is a final “container” for animation pose. See State docs for more info.

Structs§

State
State is a final “container” for animation pose. It has backing pose node which provides a set of values. States can be connected with each other using transitions, states with transitions form a state graph.

Enums§

StateAction
An action, that will be executed by a state. It usually used to rewind, enable/disable animations when entering or leaving states. This is useful in situations when you have a one-shot animation and you need to rewind it before when entering some state. For example, you may have looped idle state and one-shot attack state. In this case, you need to use StateAction::RewindAnimation to tell the engine to automatically rewind the animation before using it. Otherwise, when the transition will happen, the animation could be ended already and you’ll get “frozen” animation.