You need to temporarily move the shape back to the origin prior to
performing any rotation.  Once it's rotated, then you can move it back.

Chris Veal

-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED] Behalf Of nagehan pala
Sent: Wednesday, September 24, 2003 7:15 AM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] OrbitBehavior and PickBehavior


Thanks for your help,Dirk,  but this is not the problem, I think.

I used MouseRotate behavior,but it doesn't solve the problem. The problem is
that: after I use OrbitBehavior or MouseRotate behavior class, and then use
PickRotateBehavior, PickTranslateBehavior or PickZoomBehavior classes, the
shapes and the mouse icon moves in the different directions.

Before using OrbitBehavior class, everything is fine. I click the mouse when
the mouse icon is on the shape that I want to select. The shape and the
mouse icon moves in the same direction. After using OrbitBehavior class,
(does not matter whether to set OrbitBehavior.REVERSE_ALL or not set) I
click the mouse and select the shape again, but this time the shape and the
mouse icon are not moved in the same direction. There is similar problem
when I use PickZoomBehavior, the shape doesn't close to me(image plate). It
moves to the first zoomed direction(before using OrbitBehavior).

Maybe there is problem in PickTranslateBehavior and PickZoomBehavior.How can
I solve this direction problem?

nagehan

>From: "Dirk L. van Krimpen" <[EMAIL PROTECTED]>
>Reply-To: Discussion list for Java 3D API <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: [JAVA3D] OrbitBehavior and PickBehavior
>Date: Wed, 24 Sep 2003 09:40:50 +0200
>
>Nagehan,
>
>OrbitBehavior doesn't rotate the coordinate system but moves the
>view platform around your origin. The simplest thing you may try
>is to pass a flag to the OrbitBehavior constructor, something like:
>
>OrbitBehavior orb=new OrbitBehavior(yourcanvas,orb.REVERSE_ALL);
>
>or, instead of using an OrbitBehavior,you could just use a simple
>MouseRotate behavior.
>
>Your English is great! (At least, that's what I think being a Dutchman
>myself).
>
>Dirk
>
>----- Original Message -----
>From: "nagehan pala" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, September 23, 2003 5:11 PM
>Subject: [JAVA3D] OrbitBehavior and PickBehavior
>
>
> > hi
> >
> > There are some shapes in my scene. I use a button for changing
>behaviors.
> > First, PickTranslateBehavior, PickZoomBehavior and PickRotateBehavior
>are
> > used for moving the selected shape. When the button is pressed, these
> > behaviors are detached and OrbitBehavior is set. Then, the scene  can be
> > rotated, translated or zoomed.
> >
> > When the scene is rotated, also coordinate system is rotated. If you
>press
> > the button again, PickTranslateBehavior, PickZoomBehavior and
> > PickRotateBehavior are set. When you select a shape and drag it to the
> > right, the shape doesn't move to the right, as expected.
> >
> > I want that, when I select a shape and drag it to the right, the shape
>moves
> > to the right. When I use OrbitBehavior(rotates the coordinate system),
>is
>it
> > possible?
> >
> > sorry for my bad english
> >
> > nagehan
> >
> > _________________________________________________________________
> > High-speed Internet access as low as $29.95/month (depending on the
>local
> > service providers in your area). Click here.   https://broadband.msn.com
> >
> >
>===========================================================================
> > 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".
>
>===========================================================================
>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".

_________________________________________________________________
Instant message during games with MSN Messenger 6.0. Download it now FREE!
http://msnmessenger-download.com

===========================================================================
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".

===========================================================================
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