[EMAIL PROTECTED] wrote:
  terrainNormal = heightTestResults.getWorldIntersectNormal();
  angle = terrainNormal.y();
                tankXform->setAttitude(osg::Quat(osg::DegreesToRadians(angle),
osg::Vec3(0,0,1) ) );

Maybe someone spots an error ?

It's unusual to use the y component of the normal as an angle...
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to