Question

I've got a Canvas3D which holds a couple Spheres. Is there a way to detect when the user clicks on a sphere?

Was it helpful?

Solution

In Java3D this is known as "Picking" you should read the section on the Java3D API Tutorial if you haven't already. Here is the section on Interacting with objects, you're looking for page 35 by the way:

Heres the entire tutorial:

Hopefully this answer didn't come too late! I just started Java3D myself, hope this helped!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top