I believe the osg::Quat makeRotate(v1, v2) method will do it. This method produces the quaternion required to rotate from v1 to v2.
Will On Nov 11, 2007 1:31 PM, Panagiotis Papadakos <[EMAIL PROTECTED]> wrote: > Hi. > > Sorry if this is a stupid question but I can't find how to solve this! > Assume that a vector (x1, 0.0, 0.0) is on the x axis. Lets say that > we have another vector (x2, y2, z2), with the same length. How can I > find the rotations that I have to apply to the initial vector > so that we get the second vector? > > Thanks! > > Panagiotis Papadakos > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

