[osg-users] osgGA::AnimationPathManipulator animate twice

Seppel Andrio osgforum at tevs.eu
Mon Jun 13 09:17:56 PDT 2016


Hey guys,

I have a problem with an osgGA::AnimationPathManipulator.

Basically my situation is:
When user clicks an item I calculate an AnimationPath and set it to the the viewer with:


Code:
viewer->setCameraManipulator(new osgGA::AnimationPathManipulator(calculateAnimationPath(params)))



The first time setting the cameraManipulator works like charm and the camera does the wished animation, but the second time I set the cameraManipulator the camera switches immediately to the end of the set AnimationPath without animating.

 What do I have to change that the second animation is displayed too?

Thank you!

Cheers,
Seppel

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=67596#67596








More information about the osg-users mailing list