4#include <unordered_map>
#define REGISTER_COMPONENT(Type, MenuPath)
Definition ComponentReflection.hpp:156
Component that manages parameters, state machines, transitions, and blending.
Definition AnimationController.hpp:67
std::string fromState
Definition AnimationController.hpp:78
std::string currentState
Definition AnimationController.hpp:71
std::unordered_map< std::string, float > parameters
Definition AnimationController.hpp:75
float currentStateTime
Definition AnimationController.hpp:80
float crossfadeDuration
Definition AnimationController.hpp:83
float fromStateTime
Definition AnimationController.hpp:81
std::string targetState
Definition AnimationController.hpp:79
std::vector< AnimationState > states
Definition AnimationController.hpp:68
std::vector< AnimationTransition > transitions
Definition AnimationController.hpp:69
float crossfadeProgress
Definition AnimationController.hpp:82
bool isCrossfading
Definition AnimationController.hpp:84
Represents a state in the animation state machine, referencing a clip or a blend tree.
Definition AnimationController.hpp:32
BlendTree blendTree
Definition AnimationController.hpp:35
bool isBlendTree
Definition AnimationController.hpp:36
bool isLooping
Definition AnimationController.hpp:37
std::string name
Definition AnimationController.hpp:33
float speed
Definition AnimationController.hpp:38
std::string clipName
Definition AnimationController.hpp:34
Represents a transition rule from one state to another under certain conditions.
Definition AnimationController.hpp:55
float crossfadeDuration
Definition AnimationController.hpp:59
std::string toState
Definition AnimationController.hpp:57
std::vector< TransitionCondition > conditions
Definition AnimationController.hpp:58
std::string fromState
Definition AnimationController.hpp:56
Represents a single animation clip in a blend tree with its target threshold value.
Definition AnimationController.hpp:11
std::string clipName
Definition AnimationController.hpp:12
float threshold
Definition AnimationController.hpp:13
glm::vec2 threshold2D
Definition AnimationController.hpp:14
Represents a collection of blend nodes driven by a controller parameter.
Definition AnimationController.hpp:21
bool is2D
Definition AnimationController.hpp:25
std::string parameterName
Definition AnimationController.hpp:23
std::vector< BlendNode > nodes
Definition AnimationController.hpp:22
std::string parameterYName
Definition AnimationController.hpp:24
Represents a condition that must be met to trigger a state transition.
Definition AnimationController.hpp:45
std::string parameterName
Definition AnimationController.hpp:46
std::string op
Definition AnimationController.hpp:47
float value
Definition AnimationController.hpp:48