Hi Goutham,
In the code you attach both models to the same matrixtransform, so adding a
rotation will rotate both models. To rotate only the cow it will need it's
own matrixtransform: change the line
mt->addChild( model.get() );
to
root->addChild( model.get() );
and the chessna model will stop rotating.
Regards, Laurens.


On Thu, Mar 19, 2015 at 5:41 AM, Goutham Mudide <mudidegout...@gmail.com>
wrote:

> Hi Sir,
>
> Thanks for the reply sir am pleased with this thanks a lot..
> sir i had a doubt on how to change position of an object in scene
> dynamically which doesn't have MatrixTransformation as root.In my case i
> have loaded a model in to the scene where it generated  tree. I pick a
> particular object dynamically from scene which is one of the children's of
> MatixTransform,Here my question is can i have way to Move this perticular
> geode in scene..
>
> Thank you!
>
> Cheers,
> Goutham
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=63163#63163
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to