Hi John, Might not be the best solution but I think it will do the work.
1. translate the pyramid so your peak becomes at (0,0,0) 2. perform the rotation 3. translate back so your matrix would look like osg::Matrix m = osg::Matrix::translate(-peak) * osg::Matrix::rotate(quat) * osg::Matrix::translate(peak) -Nick On Wed, Mar 10, 2010 at 5:43 PM, John Galt <[email protected]> wrote: > Hi, > > How do I translate the origin to the peak? > > Thank you! > > Cheers, > John > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=25474#25474 > > > > > > _______________________________________________ > 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

