Guillaume,
Just take the ray vector and scale that by the distance to the point
picked, which is provided, and add it to the origin of the ray. This
produces the 3D point that was picked. Here's the code:
ray.get(rayOrig, rayVect);
rayVect.scale(pickdistance[0]);
pointpicked.set(rayOrig);
pointpicked.add(rayVect);
Roger
At 08:56 AM 3/8/99 -0500, Guillaume Bilodeau wrote:
>Hi,
>
> Another small question... When picking an object with a mouse behavior, is
>there any way to get the point (Point3f/3d) that was picked? There is such a
>method in OpenInventor and probably in OpenGL, but I can't seem to find it in
>Java3D.
>
> If no such method is available, is there a work around?
>
>
> Thank you very much again.
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/