Updates to the osgpick code.

Updates to osgGA::CameraManipulors.
This commit is contained in:
Robert Osfield
2003-04-14 15:44:30 +00:00
parent b66f464a1b
commit 5df7118d6d
10 changed files with 134 additions and 111 deletions

View File

@@ -68,15 +68,11 @@ class TransformVisitor : public NodeVisitor
{
if (_coordMode==LOCAL_TO_WORLD)
{
osg::Matrix localToWorldMat;
transform.getLocalToWorldMatrix(localToWorldMat,_nodeVisitor);
_matrix.preMult(localToWorldMat);
transform.getLocalToWorldMatrix(_matrix,_nodeVisitor);
}
else // worldToLocal
{
osg::Matrix worldToLocalMat;
transform.getWorldToLocalMatrix(worldToLocalMat,_nodeVisitor);
_matrix.postMult(worldToLocalMat);
transform.getWorldToLocalMatrix(_matrix,_nodeVisitor);
}
}