Hi Daniel,
Orbit Behavior is designed to move the ViewingPlatform around a
center of rotation while always looking at the center of rotation. So it
won't help you with a Fly behavior, however....
The J3dFly demo application we are about to ship includes some extra
behaviors ( Fly, Hover and Drive ) which extend the ViewPlatformBehavior
class. J3dFly also provides an extensible collision detection system for
the viewing platform.
All these behaviors currently use the Mouse to manipulate the view. This can
be changed by either subclassing the Behaviors and changing the wakeup
criteria and the event processing methods, or writing a KeyListener that
transforms the KeyEvents into MouseEvents and posts them to the Canvas3D.
J3dFly should be available in both binary and source form within a couple of
weeks. I'll post to the alias as soon as the code becomes available.
On a final note, the OrbitBehavior in the beta2 has been updated to
to simplify the API.
Rgds
Paul
----------------------------------------------------------
Paul Byrne Email : [EMAIL PROTECTED]
Sun Microsystems Phone : (650) 786 9926
Visualization Software Group Fax : (650) 786 5852
----------------------------------------------------------
>MIME-Version: 1.0
>Date: Tue, 30 Jan 2001 07:14:21 -0500
>From: "Dvorak, Daniel J." <[EMAIL PROTECTED]>
>Subject: [JAVA3D] OrbitBehavior
>To: [EMAIL PROTECTED]
>
>I found OrbitBehavior in the utils source jar. It looks like something that
>would be useful to me, except that I want to navigate by keypresses instead
>of mouse movement. What I'm trying to do is create a behavior that would
>move the view to create the illusion that the object in view is being
>controlled like an airplane, with yaw, pitch and roll controls. The really
>math-intense part of OrbitBehavior ( integrateTransforms() ) is lightly
>commented, and all the transform manipulations are confusing. A little help
>would be appreciated.
>
>Daniel Dvorak
>
>===========================================================================
>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".