My game takes place on a 10x10 grid of tiles, presented in full 3D with a moving camera.
Is there any easy way to recognise the co-ordinates of the mouse pointer relative to a particular plane? I would like to be able to click on the different tiles on the screen.
I suspect it involves projecting a line from the camera, but I have no idea how to do this. o_o; Can anyone help?
Thanks!
Is there any easy way to recognise the co-ordinates of the mouse pointer relative to a particular plane? I would like to be able to click on the different tiles on the screen.
I suspect it involves projecting a line from the camera, but I have no idea how to do this. o_o; Can anyone help?
Thanks!