Show
Ignore:
Timestamp:
05/19/09 16:03:09 (9 years ago)
Author:
robert
Message:

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."

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgGA/MatrixManipulator

    r7648 r10246  
    152152 
    153153                setHomePosition(boundingSphere._center+osg::Vec3( 0.0,-3.5f * boundingSphere._radius,0.0f), 
    154                                 boundingSphere._center, 
    155                                 osg::Vec3(0.0f,0.0f,1.0f), 
     154                                boundingSphere._center,                                 
     155                                //osg::Vec3(0.0f,0.0f,1.0f),                                 
     156                                _homeUp, 
    156157                                _autoComputeHomePosition); 
    157158            }