Hi, the above code doesn't work. After some experiments a found a solution/ I make matrix invert. Неre working code:
osg::PositionAttitudeTransform* Transf;// this is transform of my object Transf->setPosition(osg::Vec3(100,200,300)); osg::Quat quad; osg::Matrix matrix; matrix.makeLookAt( Transf->getPosition(), osg::Vec3(10,20,30), osg::Z_AXIS); quad.set(matrix); Transf->setAttitude(quad.inverse()); Thank you! Cheers, Sergey ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=12840#12840 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

