Hi, I'm trying to make some rotation of objects, but the results are not the
desired
I want to draw the coordinate axis. The following function draw an axis with
the given rotation:
Code:
osg::PositionAttitudeTransform* createAxis(osg::Vec4f color, osg::Quat
rotation){
Hi Manuel,
You use the osg::Quat(x,y,z,w) constructor, but your arguments are not
in the good order.
You may use osg::Quat(angle, osg::vec3d(x,y,z)) to be sure.
Hope this can help you.
Regards,
Vincent.
Manuel Garea a écrit :
Hi, I'm trying to make some rotation of objects, but the
Thank you very much Vincent!
That was my error, I was calling to the osg::Quad constructor with a wrong
order in the params
Cheers,
Manuel
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=24049#24049
3 matches
Mail list logo