Question about object selection

I'm not sure if this belongs here or in the graphics subforum, but anyways.



In my program I load a gameboard (as a single .obj model) which is basically a bunch of hexagons.  As far as I know about jmonkey, it can tell between clicks on objects, but my problem is the board is one big object.



The only way I can think of differentiating betweens squares is to put transparent objects above each square so that the user is actually clicking on those objects instead of the board.



If there are any other ways of doing this please let me know :slight_smile:



Malcolm

try the TestObjectWalking class



There is shot a Ray from Camera to the Button, and it shows you which Triangle it hits.



Out of this, you can call the depth of the Ray too