I don’t really like to do two threads so soon. But I need to hear what people think about this. So I’m making a isometric game, and I’m not sure how to detect where a player clicks. So far the only idea I have is to loop through all loaded blocks and check if the mouse is on the grass on one of them. I don’t think i can translate the mouse coordinates to isometric, since the map isn’t going to be limited in size, and some block will be higher/lower than others.
Here is one example on how one part of a chunk will look.
I been working on a code that uses toRadians, sin, and cos to calculate where the edges of the grass on each blocks end up on the screen.