Thanks Nikolov, I tried something as you suggested..
Code:
osg::PositionAttitudeTransform* heliceTransf =
static_cast<osg::PositionAttitudeTransform*>(node);
heliceTransf->setPosition(-osg::Vec3(0,-100,10));
osg::Quat q = heliceTransf->getAttitude();
q *= osg::Quat(0.0, osg::Y_AXIS, 0.0, osg::X_AXIS, 0.05,
osg::Z_AXIS);
heliceTransf->setAttitude(q);
heliceTransf->setPosition(osg::Vec3(0,-100,10));
But still is not rotating around its center..
And I can't use the as you suggested using the Matrix, because the rotation
must be placed at the node object as using the "setAttitude" method..
Thanks alot again, can you see what is happening ?
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59411#59411
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org