Hi, I am trying for hours to make a rotation with two vectors...
The code is : osg::Matrixf MR = osg::Matrixf::identity(); //matrix rotation MR.rotate(angle*osg::PI/180.0, _NodeTranslation^_NodeTranslationStart); osg::Quat qrotation = osg::Quat(); qrotation.set(MR); _rotation *= qrotation; cout<<"Rot : "<<qrotation.x()<<" "<<qrotation.y()<<" "<<qrotation.z()<<" "<< qrotation.w()<<endl; And in the console, the result is : Rot : 0 0 0 1 Rot : 0 0 0 1 Rot : 0 0 0 1 ... I've checked 'angle' and it is a good value, always increasing... Is there any problem in my code ? Why the Quat doesn't change... ? Thanks, regard, Vincent
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

