Hi Vincent, I'm afraid the osg::AnimationPathCallback doesn't have a callback to inform you when the animation is finished, so you'll have to subclass from AnmationPathCallback or write your own callback to implement this.
Robert. On Mon, Feb 7, 2011 at 12:43 AM, vincent sauvage <[email protected]> wrote: > Hi, > > i use animation path for moving a geode from one point to another ,(from its > position to a target position acquired by picking) > > It works but , once the animation has finished (target position is reached), > il seems that callback is still running ... and the result is i can move > anymore the geode , by user input for exemple..... geode keep on go to > target position. > ..; even if i call setLoopMode(osg::AnimationPath::NO_LOOPING) > > I'd like to run this animation just one time time, pause it et restart it > later with other taget position. > . > My question is : > How could i know my animation is finished ? > and > how can i pause it and restart it later? > > > Thank you! > > Cheers, > vincent > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=36400#36400 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

