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."
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user