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
AnimatorComponent Struct Reference

Animator controller managing active clips and tracking playback timing. More...

#include <Animator.hpp>

Public Attributes

std::vector< AnimationClip > animations
 List of all clips loaded from the model asset.
int activeAnimationIndex = -1
 Index of the active clip in playback.
float currentTime = 0.0f
 Current playback time offset in seconds.
float playbackSpeed = 1.0f
bool loop = true
bool isPreviewing = false
std::string loadedAnimPath

Detailed Description

Animator controller managing active clips and tracking playback timing.

Member Data Documentation

◆ activeAnimationIndex

int AnimatorComponent::activeAnimationIndex = -1

Index of the active clip in playback.

◆ animations

std::vector<AnimationClip> AnimatorComponent::animations

List of all clips loaded from the model asset.

◆ currentTime

float AnimatorComponent::currentTime = 0.0f

Current playback time offset in seconds.

◆ isPreviewing

bool AnimatorComponent::isPreviewing = false

◆ loadedAnimPath

std::string AnimatorComponent::loadedAnimPath

◆ loop

bool AnimatorComponent::loop = true

◆ playbackSpeed

float AnimatorComponent::playbackSpeed = 1.0f

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