Antonin Linares wrote:
> Hi osg users
> 
> I use an intersectionVisitor to place tank model on my terrain
> i made something like that:
> 
> [...]osg::Quat rot(rotation, normal);
> pat->setAtitude(corect*rot);   //the tank was well oriented but 
> no more aligned with my terrain             
> }
> }
> 
> I looking for any idea to make my tank aligned with the terrain but 
> keeping it's previous orientation.
> 

Have you tried : pat->setAtitude(rot*corect); ?
I'm wondering if the factor that should be applied last (i.e. rot) should be 
first in the multiply here.

------------------------
-- Steven Saunderson

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=8557#8557





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to