When you rotate an object, it should rotate around its center point which
is a fixed point.  If you have an object on the screen, and you left click
on it to rotate and the object moves out of the view, then I think that the
object you are clicking on is attached to the transform of a parent object
who's center point is out of the screen.

You should look very carefully ate what you are doing.


If you do want to rotate an object around a point other than its center,
you could make modifications to the MouseOrbit behavior that wrote.

Check out the URL:
http://www.sigda.org/Eric/Java3d/


At 09:28 PM 10/10/2000 +0000, you wrote:
>   I have a problem using MouseRotate, when I use it, I do not know around
>which point it is rotating if I hold on the mouse left button, the object
>rotates without my control,sometimes, it is out of the screen, it is better
>to assign a fixed point around which the object rotates. How can I setup the
>rotation point to a fixed position,so that the object will rotate around
>that point?
>
>The following is part of the code I used:
>   MouseRotate behavior = new MouseRotate();
>          behavior.setTransformGroup(objTrans);
>          behavior.setFactor(0.001);
>          objTrans.addChild(behavior);
>          behavior.setSchedulingBounds(bounds);
>
>
>
>   Thanks.
>
>David
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>Share information about yourself, create your own public profile at
>http://profiles.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".

***********************************************************************
Eric Reiss - http://www.sigda.acm.org/Eric/
Email: [EMAIL PROTECTED]

SIGDA Internet Server Manager - http://www.sigda.acm.org/

Assistant Systems Manager - School of Engineering
University of Pittsburgh
***********************************************************************

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