mouse clicking on a 3D grid

Blitz3D Forums/Blitz3D Beginners Area/mouse clicking on a 3D grid

Dock(Posted 2004) [#1]
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!


Rob Farley(Posted 2004) [#2]
Create a plain, make it pickable, use camerapick.


Dock(Posted 2004) [#3]
Ah excellent - knowing to work with camerapick was what I needed to know, then I managed to figure out the rest from there. I'm new to picking.