From 323deba59cc6567675cba9646bd2fdf3997707a0 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 19 May 2009 14:03:09 +0000 Subject: [PATCH] From Martin Beckett, "In MatrixManipulator can we have computeHomePosition() use _homeUp rather than the hardcoded (0,0,1). This makes it possible to redefine the viewing direction of 'home' in the other manipulator - so home in a GIS app could be a plan view. Since _homeUp is set to (0,0,1) and no current code changes it there shouldn't be any difference for current users." --- include/osgGA/MatrixManipulator | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/osgGA/MatrixManipulator b/include/osgGA/MatrixManipulator index cfc02ce5f..e0c7c48d8 100644 --- a/include/osgGA/MatrixManipulator +++ b/include/osgGA/MatrixManipulator @@ -151,8 +151,9 @@ public: const osg::BoundingSphere& boundingSphere=getNode()->getBound(); setHomePosition(boundingSphere._center+osg::Vec3( 0.0,-3.5f * boundingSphere._radius,0.0f), - boundingSphere._center, - osg::Vec3(0.0f,0.0f,1.0f), + boundingSphere._center, + //osg::Vec3(0.0f,0.0f,1.0f), + _homeUp, _autoComputeHomePosition); } }