Transform GfxBody::getBoneWorldTransform (unsigned n) { checkBone(n); Ogre::Bone *bone = skeleton->getBone(n); Transform t(from_ogre(bone->_getDerivedPosition()), from_ogre(bone->_getDerivedOrientation()), from_ogre(bone->_getDerivedScale())); updateWorldTransform(); return worldTransform * t; }
Vector3 GfxBody::getBoneWorldScale (unsigned n) { checkBone(n); Ogre::Bone *bone = skeleton->getBone(n); return from_ogre(bone->_getDerivedScale()); }