Hi,

have a look at the quaternion/Matrix member functions, e.g. makeRotate. Do not try to set the quat internal values directly.

E.g. you can make a quat/Matrix from roll, pitch and yaw with three angles and 3 axes.

go here:
http://news.gmane.org/gmane.comp.graphics.openscenegraph.user
and search for "roll pitch yaw makeRotate" and you'll see some examples.

jp

Adrien Joly wrote:
Hi,

I'm kind of newbie in 3D developpment and in openSceneGraph.

I want to rotate a node using PositionAttitudeTransform::setAttitude but I 
don't know how to do that.

I've tried to make it rotate according ti the fact that x, y and z of the Quat 
is the coordinate of the vector from the origin (x, x, z) plus an angle (w).

But the node has a strange behavior.

Can anyone help me?

Thank you.

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





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


--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

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

Reply via email to