Re: [osg-users] how restart AnimationPathHandler at start position

2009-10-26 Thread Felix Ilbring
Thanks Rafa, that sounds like it would solve the problem. real big thanks for the fast reply Felix -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=18694#18694 ___ osg-users mailing list

Re: [osg-users] how restart AnimationPathHandler at start position

2009-10-26 Thread Felix Ilbring
Hi Again, somehow it is still not working. The setStartTick method has no effect at all. i tried to set the startTick in _view, _timer and both, nothing worked. As i want to start the animation from the beginning, each time i press the play button, i do the folowing: Code: bool

[osg-users] how restart AnimationPathHandler at start position

2009-10-25 Thread Felix Ilbring
Hi, I have a simple question: How do i confince the handler to start the animation always from first second? Each time i fire the start event, i want to start the animation from time 0. If i stop the animation by 'Z', and press 'Z' again 5 sec later. it seems the path has moved on although if

Re: [osg-users] how restart AnimationPathHandler at start position

2009-10-25 Thread Rafa Gaitan
Hi Felix, I did something similar, maybe this pause method could help you. _pause = !_pause; if(_pause) _startTick = _timer.tick(); else { _timer.setStartTick(_timer.getStartTick()+(_timer.tick()-_startTick)); } I save the tick when is paused and when I unpause I set the new