You can reverse the operation of the mouse behavior classes.  For
example the MouseRotate class has the constructor:
      MouseRotate(int flags)
      Creates a rotate behavior with flags set, where the flags are:
          MouseBehavior.INVERT_INPUT   Set this flag if you want to
invert
                                       the inputs.
          MouseBehavior.MANUAL_WAKEUP  Set this flag if you want to
                                       manually wakeup the behavior.

So setting the INVERT_INPUT flag makes it possible to use all of the
mouse behavior classes to provide mouse navigation.  THis is discussed
in the up coming chapter, Chapter 4: Interaction, of the Java 3D API
tutorial.  Chapter 4 should be available in a few days.

Cheers,
Dennis

"Casteel, Don" wrote:
>
> Just applying the mouse behaviors to the viewplatform transform doesn't
> really do the job. Everything is backward, and after rotating the view a
> move which should be forward actually moves the view along one of the world
> axes.
>
> I'm hoping someone (SUN ?) can write a class similar to the SimpleUniverse
> class which includes the correct mouse behaviors and transform processing to
> make everything work correctly and post it to the group, eventually to be
> included in the next release. Perhaps it should be called
> NavigationUniverse.class?
>
> Just a few thoughts.............
>
> > -----Original Message-----
> > From: David HALLE [SMTP:[EMAIL PROTECTED]]
> > Sent: Monday, June 28, 1999 8:25 AM
> > To:   [EMAIL PROTECTED]
> > Subject:      Re: [JAVA3D] Move around a scene
> >
> > Try to use the MouseBehavior class to manage mouse
> > event.
> > Generally speaking, the transformation must be applied
> > to the transformgroup of your viewplatform to move
> > this one around your scene.
> > yours,
> >
> > --- [EMAIL PROTECTED] wrote:
> > > Hello
> > >
> > > I have a scene.
> > > I try to move around it like my screen was a camera.
> > > I want to move the mouse
> > > and move me around my scene.
> > >
> > > Anybody know how can i do this?
> > >
> > > Thanks in advance for any help
> > >
> > > Oscar Saez
> > >
> > >
--
-----
Dennis J Bouvier
[EMAIL PROTECTED]
Find the Java 3D Tutorial "Getting Started with the Java 3D API" at
http://sun.com/desktop/java3d/collateral

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to