Original Post
hi i wrote a 2d strategy game.i wanna port it to 3d.i mean i have a tilemap like 40*40 tiles and when your mouse is x = 52 y=15 for exampleit means that you are at second tile at the top of the map.i mean if u think like an array of tile u are at
[][x][][]
[][][][]
[][][][] here.
but when it comes to 3d, lets say i made a tilemap composed of triangles which 2 of them make a quad,i mean a tile and we look from 0,1,0 xyz to forward.tiles are seen at an angle ,and it means they will be seen in a projectioned form.
MY question is how will i decide which tile user clicked,i mean because of 3d and projection we dont know how many tiles are seen or if we scroll how many tiles will scrolled accordingly.
how can i do mouse mapping to know which tile it is like i did in 2d.?
thanks for reading