Hi,
it seemed that all translations/transformations are done with a PAT, but when i
rotate the PAT object which does not sit at position 0,0,0 of the
"world-coordinates", but it rotates around the world-coordinate-axis, but i
want to rotate around a axis of the object itself?
I tried code like the following, but it always turns around
"world-coordinate-axis".
pos->set(rectangleTwoXForm->getPosition().x(),
rectangleTwoXForm->getPosition().y()+1, rectangleTwoXForm->getPosition().z());
//rectangleTwoXForm->getPosition().set(rectangleTwoXForm->getPosition().x(),
rectangleTwoXForm->getPosition().y(), rectangleTwoXForm->getPosition().z() );
rectangleTwoXForm->setAttitude(osg::Quat(osg::DegreesToRadians(i), *pos ) );
could someone help me?
Thank you!
Cheers,
Thomas
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=18987#18987
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org