Hi,
i can rotate an geometry when i use
osg::PositionAttitudeTransform* rectangleTwoXForm =
new osg::PositionAttitudeTransform();
and add the geometry with
rectangleTwoXForm->addChild(rectangleGeode);
then i can rotate the rectangleTwoXForm with e.g.
rectangleTwoXForm->setAttitude(osg::Quat(osg::DegreesToRadians(-90.0),
osg::Vec3(0,1,0) ) );
But i cannot do this (rotation) with the original geometry? theres no
setAttitude() member func?
i saw Quat class member func makeRotate, but i use Vec3 not e.g. Vec3d. i must
check the difference of both. perhaps someone got a good example?
Thank you!
Cheers,
Thomas
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=18956#18956
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org