Hi Tristan,

The easist way is probably to use a osg::PositionAttitudeTransform.
Set the pivitot point to the center of rotation, and the position to
the final location that you want that pivot point to be, and then set
the attitude (which is a quaternion) to what ever you wish.  The
osg::Quat class has various makeRotate() methods to help you set  a
rotation about an axis.

Robert.

On 5/31/06, Tristan McMillan <[EMAIL PROTECTED]> wrote:
Hi

I'm a bit of a newbie at this so I was wondering how to rotate a body
about its local axis. I'm am currently able to translate the body as a
result of going throught the tutorials but I'm not sure which function
should be used to rotate the body

Thanks
Tristan


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

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

Reply via email to