Hi,
I am trying to rotate an object using his center as reference..
This code is rotating the object using some point as reference, but I want to
rotate using the center point of the object.
Did you understood?
This is my code:
Code:
osg::PositionAttitudeTransform* heliceTransf =
static_cast<osg::PositionAttitudeTransform*>(node);
osg::Quat q = heliceTransf->getAttitude();
q *= osg::Quat(0.0, osg::Y_AXIS, 0.0, osg::X_AXIS, 0.1, osg::Z_AXIS);
heliceTransf->setAttitude(q);
Thank you!
Cheers,
Tiago
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59396#59396
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org