2006/10/19, Ignacio García <[EMAIL PROTECTED]>:
Of course, I didn't meant to tweak the DriveManipulator code, but to take
the code it uses to place the camera depending on the mouse position as an
example to build a new "GunHandler". From what I have understood, the camera
will be moved by keyboard, so he won't probably use de DriveManipulator at
all.
-----Mensaje original-----
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] En nombre de Rémy Deslignes
Enviado el: jueves, 19 de octubre de 2006 13:33
Para: osg users
Asunto: Re: [osg-users] Vector of mouse coordinate on screen
Ignacio García a écrit :
> If you want the gun controlled by the mouse movement, take a look at the
> drive manipulator: it is not exactly what you want, but changes the camera
> position depending on the mouse position on screen. You would have to
adapt
> it to change the gun position.
>
I would rather suggest to write a new Event handler for the gun stuffs
and to use the drive manipulator as-is . At least, keeping apart these
two aspect would probably be more flexible.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
