Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
Loading...
Searching...
No Matches
AnimationControllerComponent Struct Reference

Component that manages parameters, state machines, transitions, and blending. More...

#include <AnimationController.hpp>

Public Attributes

std::vector< AnimationState > states
std::vector< AnimationTransition > transitions
std::string currentState
std::unordered_map< std::string, float > parameters
std::string fromState
std::string targetState
float currentStateTime = 0.0f
float fromStateTime = 0.0f
float crossfadeProgress = 0.0f
float crossfadeDuration = 0.0f
bool isCrossfading = false

Detailed Description

Component that manages parameters, state machines, transitions, and blending.

Member Data Documentation

◆ crossfadeDuration

float AnimationControllerComponent::crossfadeDuration = 0.0f

◆ crossfadeProgress

float AnimationControllerComponent::crossfadeProgress = 0.0f

◆ currentState

std::string AnimationControllerComponent::currentState

◆ currentStateTime

float AnimationControllerComponent::currentStateTime = 0.0f

◆ fromState

std::string AnimationControllerComponent::fromState

◆ fromStateTime

float AnimationControllerComponent::fromStateTime = 0.0f

◆ isCrossfading

bool AnimationControllerComponent::isCrossfading = false

◆ parameters

std::unordered_map<std::string, float> AnimationControllerComponent::parameters

◆ states

std::vector<AnimationState> AnimationControllerComponent::states

◆ targetState

std::string AnimationControllerComponent::targetState

◆ transitions

std::vector<AnimationTransition> AnimationControllerComponent::transitions

The documentation for this struct was generated from the following file: