Hi Felipe,

On Wed, Oct 28, 2009 at 10:55 AM, Felipe Lemus <[email protected]> wrote:
> thank you very much for your answer. My problem is that I need to translate 
> an Helicopter (.3DS model), with a camera, in a scene and I need to  can 
> change its course or even stop it in real time pressing a key of the keyboard 
> or something like that. If I use animationpath I can not control the movement 
> of the helicopter, it is a loop loaded in the beginning of the execution. I 
> saw tutorial 8 and I thought that it will resolve my problem.
>
> I will look for another way to do that, any idea is welcome...

The osganimation example illustrates how to use a
MatrixTransform/PositionAttitudeTransform as well as a
AnimationPathCallback, if you ignore the AnimationPathCallback part
and replace it by your own callback, or an update of the transforms in
your main loop you can do anything you want.

Please try to use a bit of initiative, the community can help you, but
can't walk you through every single line of code.  There are dozens of
examples and tutorials, and the whole OSG code base that you can use a
reference.  The Quick Guide Book as also available as free download.
Invest the time into learning about the things and you'll find the
pointers you get here much more productive.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to