I want to get each bone's location and rotation each frame so I tried to put it in generateDebugText using this line:
Code: Select all
// 14 bones
for (int i = 0; i <= 13; i++)
{
outText += "\n";
outText += Ogre::StringConverter::toString(mItem->getSkeletonInstance()->getDefinition()->getBones()[i].vPos);
outText += "\n";
outText += Ogre::StringConverter::toString(mItem->getSkeletonInstance()->getDefinition()->getBones()[i].qRot);
}
It did print some location and rotation vectors to the screen but they don't change even though the animation is running and the object is moving around.