We will use the previous code as base to print all animations that our entity has.
createScene()
function, get all the animations that the model has as a set:Ogre::AnimationStateSet* set = _SinbadEnt->getAllAnimationStates();
Ogre::AnimationStateIterator iter = set->getAnimationStateIterator();
while(iter.hasMoreElements()) { std::cout << iter.getNext()->getAnimationName() << std::endl; }
Dance
DrawSwords
HandsClosed
HandsRelaxed
IdleBase
IdleTop
JumpEnd
JumpLoop
JumpStart
RunBase
RunTop
SliceHorizontal
SliceVertical
3.145.40.189