I’m trying to identify when the user has clicked on something in the HUD, i.e. a geometry in the guiNode. I’ve added some Geometries to it, using Quads for meshes, and I know where the user has clicked (x,y), but for some reason the guiNode.collideWith(ray, results); doesn’t return any results. I’ve given the Geometries bounding boxes, and I’ve got a ray going from (x, y, -1) in the direction of (0, 0, 1) to ensure it crosses the z-axis.
Am I even going about this the right way, or is there a better way, like manually checking the co-ords of the mouse against the areas of the gui elements?
Thanks for your pointers. I’ve worked out the problem: I was resizing the quad but not calling updateModelBounds(). I found out after I stepped through the source and saw the wrong worldBounds. </feels stupid>