Hello,

I want to pick a object in the scene graph and  move it so, that it is
always under the mouse pointer on the screen, regardless of the position
of the viewer (ViewPlatform - It should also work, when I changed the
position of the view platform using for example the OrbitBehavior and
the plane of the screen is not parallel to the Y-X-plane any more.)

To do this, I first used the provided PickTranslateBehavior (which is
internally using the MouseTranslate behavior), but this moves the picked
shape just parallel to the Y-X-plane.
Then I changed these classes so, that the shape is moved parallel to the
screen plane.

But now I have the problem, that the moving shape is never under the
mouse pointer. It moves depending on the distance between the shape and
the viewplatform faster or slower than the mouse pointer.

Can anybody tell me, how I can calculate the new position of the shape,
so that it is always under the mouse pointer?

Thank you very much in advance,
Regards
Rüdiger Lincke

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