Hey, I tried what you told me, here is the code: osg::Matrix rot = rot.rotate(osg::DegreesToRadians(45.0),1.0,0.0,0.0); osg::Matrix sca = sca.scale (1.0,1.0,1.0); osg::Matrix m = rot * sca; arTransform->setMatrix(m); osg::Vec3f vec = arTransform->getMatrix().getTrans(); double x = vec.x(); double y = vec.y(); double z = vec.z();
But when I do this, x,y and z values are all 0. Am I doing something wrong or misunderstanding something ? Thanks again, David ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=17273#17273 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org