AireEngine
A 3D Open-World Game Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Aire::Animation Class Reference

Class that reads and processes the animation data. More...

#include <animation.h>

Public Member Functions

 Animation (const std::string &animationPath, Model *model)
 
BoneFindBone (const std::string &name)
 
float GetTicksPerSecond ()
 
float GetDuration ()
 
const AssimpNodeDataGetRootNode ()
 
const std::map< std::string, BoneInfo > & GetBoneIDMap ()
 

Detailed Description

Class that reads and processes the animation data.

Constructor & Destructor Documentation

◆ Animation()

Aire::Animation::Animation ( const std::string & animationPath,
Model * model )
inline

Constructor

Parameters
animationPathPath of the animation
modelAnimation model

Member Function Documentation

◆ FindBone()

Bone * Aire::Animation::FindBone ( const std::string & name)
inline

Find a bone by its name

Parameters
nameThe name of the bone to locate
Returns
Here is the caller graph for this function:

◆ GetBoneIDMap()

const std::map< std::string, BoneInfo > & Aire::Animation::GetBoneIDMap ( )
inline
Returns
The map that maps bone names to the corresponding bone objects
Here is the caller graph for this function:

◆ GetDuration()

float Aire::Animation::GetDuration ( )
inline
Returns
The animation duration
Here is the caller graph for this function:

◆ GetRootNode()

const AssimpNodeData & Aire::Animation::GetRootNode ( )
inline
Returns
The root node in the skeletal hierarchy
Here is the caller graph for this function:

◆ GetTicksPerSecond()

float Aire::Animation::GetTicksPerSecond ( )
inline
Returns
The number of animation ticks per second
Here is the caller graph for this function:

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