Hi Héctor, On 25 October 2012 12:34, Héctor Martínez <[email protected]> wrote: > thank you for your answer. I was using osg::AnimationPath for individual > animations, but when trying to combine both animations the behaviour is not > the desired. The problem is that I want to change dynamically the pivot > point of the translation animation. In other words, the rotation has to be > always the same (centered in the model), and it has also to translate around > a dynamic pivot point. If I do this separately, it works. But if I add both > animations using addUpdateCallback, only the translation is working. > > I am a bit lost in the animationpath concept. Is it possible to add 2 > animationpaths to the same PositionAttitudeTransform? >
The AnimationPathCallback doesn't support attached two AnimationPath. One could write your callback that does this but you'd need to make sure that local and transform origins are all consistent. As I said in my previous email I'd recommend using your own custom UpdateCallback. This way you can compute the path exactly for each frame as per your requirements. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

