[help] interactive on screen UI

ok I’ve tried doing some tests to see if I can get it to print the name of the arrows attached to the guiNode, I’ve tried this code,

 Vector2f location = inputManager.getCursorPosition();



                Vector3f origin = new Vector3f(location.x, location.y, 0);

                Vector3f dir = new Vector3f(0f, 0f, 1f);

                Ray ray = new Ray(origin, dir);



                CollisionResults results = new CollisionResults();

                guiNode.collideWith(ray, results);
                System.out.println(ray + "   " + guiNode.collideWith(ray, results) + "   " + results.getClosestCollision());

the following is the output I get from it

Ray [Origin: (628.0, 68.0, 0.0), Direction: (0.0, 0.0, 1.0)]   0   null
Ray [Origin: (630.0, 84.0, 0.0), Direction: (0.0, 0.0, 1.0)]   0   null
Ray [Origin: (610.0, 108.0, 0.0), Direction: (0.0, 0.0, 1.0)]   0   null

the ray is starting at the correct x and y location on screen, but results still remain at zero?
The code was tried from here Determining size of Geometry in guiNode using screenCoordinates? The arrows are all attached to 1 node which in turn is attached to the guiNode? I’m assuming this fact doesnt matter?