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

Bone in a skeletal hierarchy. More...

#include <Bone.h>

Public Member Functions

 Bone (const std::string &name, int ID, const aiNodeAnim *channel)
 
void Update (float animationTime)
 
glm::mat4 GetLocalTransform ()
 
std::string GetBoneName () const
 
int GetBoneID ()
 
int GetPositionIndex (float animationTime)
 
int GetRotationIndex (float animationTime)
 
int GetScaleIndex (float animationTime)
 

Detailed Description

Bone in a skeletal hierarchy.

Constructor & Destructor Documentation

◆ Bone()

Bone::Bone ( const std::string & name,
int ID,
const aiNodeAnim * channel )
inline

Create a new bone

Parameters
nameName to identify the bone with
IDIndex indentifier of the bone
channelAssimp struct that stores the animation of the node
Here is the call graph for this function:

Member Function Documentation

◆ GetPositionIndex()

int Bone::GetPositionIndex ( float animationTime)
inline

Get the position index of the bone inside the positions array

Parameters
animationTimeThe current time in the animation
Returns
The position index of the bone

◆ GetRotationIndex()

int Bone::GetRotationIndex ( float animationTime)
inline

Get the rotation index of the bone inside the rotations array

Parameters
animationTimeThe current time in the animation
Returns
The rotation index of the bone

◆ GetScaleIndex()

int Bone::GetScaleIndex ( float animationTime)
inline

Get the scale index of the bone inside the scalings array

Parameters
animationTimeThe current time in the animation
Returns
The scale index of the bone

◆ Update()

void Bone::Update ( float animationTime)
inline

Update the animation of the bone

Parameters
animationTimeThe animation time to update the animation to
Here is the caller graph for this function:

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