Anim 0.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
AnimationSystem::Mesh::AnimationState Struct Reference

Struct representing the current state of an animation. More...

#include <AnimationState.h>

Collaboration diagram for AnimationSystem::Mesh::AnimationState:

Public Member Functions

 AnimationState (gef::SkeletonPose const &skeletonPose)
 
void UpdateTime (float const deltaTime)
 Update the current animation time.
 
gef::SkeletonPose const & CurrentPose ()
 The pose of this animation at the current time.
 
bool HasAnimation () const
 

Public Attributes

gef::SkeletonPose const InitialBindPose
 
std::optional< std::reference_wrapper< AnimationClip const > > CurrentAnimation
 
float CurrentAnimationTime {0}
 
float PlaybackSpeed {1}
 
bool Looping {false}
 

Detailed Description

Struct representing the current state of an animation.

Member Function Documentation

◆ HasAnimation()

bool AnimationSystem::Mesh::AnimationState::HasAnimation ( ) const
inline
Returns
If this animation has an animation clip

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