There are examples of using the various Picking classes in the latest
chapter of the Java 3D API Tutorial available from the web site.
The latest chapter is Chapter 4: Interaction.
There is even an example program showing how to use the callback
feature of the mouse picking utility classes. It isn't exactly
what you want, but it might help.
Chapter 4 gives all the basics on behaviors and details on quite
a few classes including KeyNavigatorBehavior, Mouse Behaviors, and
Picking.
Find the Java 3D Tutorial "Getting Started with the Java 3D API" at
http://sun.com/desktop/java3d/collateral
hope this helps,
Dennis
Shaun Nirenstein wrote:
>
> Hi..
>
> I'm trying to simply execute a piece of code when an object is
> clicked on. I'm trying to do this by extending "PickMouseBehavior".
> Nothing seems to happen. Surely the whole point of this class is
> that I don't have to do the ray intersections, etc. myself?
>
> Also, they make reference to a PickDragBehavior which doesn't
> seem to exist.
>
> Can anyone help me?
>
> Thanks.
> Bye.
>
> ===========================================================================
> 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".
--
-----
Dennis J Bouvier
===========================================================================
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".