I am trying to incline the plane sideway as it rotates (moves left or right), in order to have the flight simulation more realistic.

planePositionPAT->setAttitude( osg::Quat(plane_Rot, osg::Vec3d(0.0,0.0,1.0),
plane_SideInc, osg::Vec3d(0.0,1.0,0.0), plane_FrontInc, osg::Vec3d(1.0,0.0,0.0) ));

I am changing the value of plane_SideInc as the plane moves right or left inoder to incline it. However, when the plane_Rot 's value is other than osg::DegreesToRadians(180.0) or osg::DegreesToRadians(0.0)
the plane slightly inclines across the front or the back. More precisely..
when the plane_Rot 's value is osg::DegreesToRadians(90.0) it inclines upward. and when the plane_Rot 's value is osg::DegreesToRadians(-90.0) it inclines downward.

Is there another way to only incline the plane only SIDEWAY without having the the value of plane_Rot affecting it.

Thank you for your time.

_________________________________________________________________
Watch music videos on Sympatico / MSN Video! http://video.msn.com/v/en-ca/v.htm?t=c317&f=38/81&p=ENCAmusic_ENCAvideos

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to