Hi, I am trying to reset my viewer's position in response to an external UI event using the home(double) function on MatrixManipulator, but to no avail. The call to setHomePosition() is working correctly, as I can hit the spacebar, and it takes me to the proper location. The online page for MatrixManipulator does not say what the double parameter does, but a comment in the code says it is the current time. I tried passing in viewer->elapsedTime() and then I tried 0.0 - and neither seemed to work. On digging through the code, it appears that KeyswitchMatrixManipulator does not actually implement this function (at least in my version of OSG - 2.6.1). I then tried getting the current MatrixManipulator from it and calling home(double) directly on that - still with no effect.
Am I doing something wrong? Is there a better way to set the view to a desired location and orientation? Is this a bug that's been fixed in a more recent version? Thank you! Cheers, Brian ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13969#13969 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org