I meant the latter overload. I didn't have access to any osg stuff and
no compiler. Sorry for overload confusion, but it's good that you
found how to use osg::Quat.
On Sun, Apr 12, 2009 at 9:59 PM, Sergey wrote:
> You have a little mistake:
> THIS :
> Trans->setAttitude(osg::Quat(osg::DegreesToRa
You have a little mistake:
THIS :
Trans->setAttitude(osg::Quat(osg::DegreesToRadians(rotation_degree),
fX, fY, fZ));
IS NOT RIGHT , It must be this way :
Trans->setAttitude(osg::Quat(fX, fY,
fZ,osg::DegreesToRadians(rotation_degree)));
inline Quat( value_type x, value_type y, value_type z, valu
Hi Sergey,
use osg::Quat to rotate your object.
Trans->setAttitude(osg::Quat(osg::DegreesToRadians(rotation_degree),
fX, fY, fZ));
where fX, fY and fZ indicates axis to rotate.
Trans->setAttitude(osg::Quat(osg::DegreesToRadians(rotation_degree),
1.0, 0.0, 0.0));
will rotate object around X axis.
Hi All,
How can I rotate му object?
I try to use osg::PositionAttitudeTransform and setPivotPoint , but No
reaction.
Sample code :
osg::Geode *Geode =new osg::Geode;
osg::PositionAttitudeTransform *Transf = new
osg::PositionAttitudeTransform();
Transf->addChild(Geode);
osg::Ve
4 matches
Mail list logo