Bubba-3D
0.9.0
Awesome game engine!
|
#include <BoneTransformer.h>
Public Member Functions | |
BoneTransformer (aiScene *aiScene) | |
std::vector< chag::float4x4 > | calculateBoneTransforms (float totalElapsedTimeInSeconds) |
int | createBoneIndexIfAbsent (const aiBone *bone) |
Class for calculating the transform of all bones at a certain tick in a mesh.
Usage:
Definition at line 46 of file BoneTransformer.h.
std::vector< chag::float4x4 > BoneTransformer::calculateBoneTransforms | ( | float | totalElapsedTimeInSeconds | ) |
Calculates the transform to be applied to each bone at the current time.
totalElapsedTimeInSeconds | The time since the application was started |
Definition at line 219 of file BoneTransformer.cpp.
int BoneTransformer::createBoneIndexIfAbsent | ( | const aiBone * | bone | ) |
Updates the bonetransformer to include the bone if not already present.
bone | The bone to add |
Definition at line 235 of file BoneTransformer.cpp.