Can't be sure without looking at your code, but the problem may be the
translate scale factor you're using in the behavior (pixels to virtual
world motion). I used the following factor for one of my apps (it uses
parallel projection thus getScale()). 
                        transFactor =
canvas.getWidth()/canvas.getPhysicalWidth()*xf.getScale();

I then set the translate transform to pixel_delta/transFactor.

Others may have better ways.

Jack

-----Original Message-----
From: Jiafeng QIN [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 09, 2003 9:23 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] how to move an object with curse


Hello everyone.
I tried to draw a simple sphere and defined a PickTranslateBehavior.
Then I can move the sphere by pressing right button but the sphere
movement doesn't exact follow the mouse movement (the sphere does not
always lying under the curse). I think this behavior only change the
view point not the 3D position of the sphere, is that correct? How can I
make the curse and sphere at same position when dragging the mouse? Do I
need to define a new mouse behavior to achieve this?
Thanks.

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