Mouse Picking using Nodes:

Hi there, I am trying to figure out how I can get my original node back using mouse picking.  Basically I have this class that I extended from node and it has a certain function I want to call when the mouse is clicked on it, but since picking uses the Geometry abstract class I am getting unwanted class cast exceptions, because I tried to cast it.  Anyways if anyone can give me some insight on how I can do this let me know, Ive already tried getting the parent object but that gives me problems too.  Thanks

-Nate

Use instanceof to test if you can cast a class.

Note however that Node is not a subclass of geometry.