I’ve got examples of getting mouse picking to work with 3D objects in a scene where you assign a MouseEvent3D.CLICK event listener, and then when someone clicks the object it registers the event, etc.. It works, just not in my particular case.
I essentially need to have the same functionality, but with a function I can call manually passing in the mouseX and mouseY coordinates and getting back a Vector3D of the first mesh/bounding box the ray would hit coming from the camera.
I’m sure this has been done a million times, I just can’t seem to find an example anywhere. (Maybe it hasn’t since Away3D provides such a nice interface to begin with ?).
Thanks!
—Rob