Updates to NodeTrackerManipulator.cpp

This commit is contained in:
Robert Osfield
2004-10-14 20:35:55 +00:00
parent e4f22c72bd
commit bb7c423849
2 changed files with 5 additions and 0 deletions

View File

@@ -249,6 +249,9 @@ void NodeTrackerManipulator::addMouseEvent(const GUIEventAdapter& ea)
void NodeTrackerManipulator::setByMatrix(const osg::Matrixd& matrix)
{
osg::Vec3d eye,center,up;
matrix.getLookAt(eye,center,up,_distance);
computePosition(eye,center,up);
}
void NodeTrackerManipulator::computeNodeWorldToLocal(osg::Matrixd& worldToLocal) const