[osg-users] Rotation of a node starts clockwise and ends counter-clockwise.

Elias Tarasov elias.tarasov at gmail.com
Wed Aug 12 11:09:23 PDT 2015

Hi, Sebastian!
Thanks for help and quick answer.
I've tested your suggestion, but failed.
The problem i have now is that after i replaced MatrixTransform by DOFTransform, i lost all my engines, that i previously attached to main frame by using MatrixTransform
The code (try to attach only one engine to main osg::Group frame for short)


ref_ptr<DOFTransform> transform = new DOFTransform;
transform->addChild( nodeEngineCCW.get() );
transform->setCurrentTranslate( Vec3(0.0, 0.0, 0.0) );
groupAircraft->addChild( transform.get() );

It is expected that the engine must be right in the center of the model (as it was happend with the MatrixTransform), but it is not.

Fucntion member setCurrentTranslate seems the most suitable candidate to move child nodes. 
I was not able to find any significant example of using it neither in examples, supplied by OSG, nor in google. Doxygen docs on this class tell almost nothing. 
For instance, maybe setCurrentTranslate argument doesn't have a meaning of a vector with respect to a parent?
Could you provide an example ( link, or something) ?

Thank you for your help and patience!


Read this topic online here:

More information about the osg-users mailing list