Hi, Donald.
You must use the class PickCanvas.
This class has a method setShapeLocation(x,y), where x, y are the pixel
coordinate where the user made pick.
After that, you must use the method pick(), or pickAll(), or pickAllSorted()
and you'll get an object PickResult. From this PickResult you'll get a
PickIntersection, which gives you all the information you nedd.
Don't forget to set the capabilities of the objects to enable_pick.
-----Mensaje original-----
De: Donald Peeke-Vout <[EMAIL PROTECTED]>
Para: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Fecha: viernes 6 de abril de 2001 9:10
Asunto: [JAVA3D] XZ Plane mouse click
>I'm currently in the process of building a Java 3D game environment with
>a user interface that is similar to the Maxis game "The Sims". I'd like
>to have the users character walk towards any point on the Canvas3D object
>that is clicked, but I'm can't figure out how to implement it. Basically,
>the character walks around on the XZ axis and I need a function that will
>return the XZ coordinates of a mouse click on the window. Any ideas or
>suggestions would be greatly appreciated.
>
>--
>Donald Peeke-Vout
>[EMAIL PROTECTED]
>
>===========================================================================
>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".