Hi,
I want to update bones matrix and instantly calculate new bones skeleton
matrix, this is...
Code:
void OSGAnimationManager::manualBonesRotate(std::string boneName, osg::Matrix
mat)
{
for(int i = 0; i<_bones.size();i++)
{
if(!_bones.at(i)->getName().compare(boneName))
{
_pBoneUpdate.at(i)->getStackedTransforms().push_back(new
osgAnimation::StackedQuaternionElement(
"ManualUpdates",mat.getRotate()));
}
}
}
With this funcion I add new rotation to stacked transforms, but after do it, in
the same frame, I need to know the new bones skeleton matrix. How could I force
it to calculate it?
Thank you!
Cheers,
Aitor
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48224#48224
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org