So "having trouble" means "I didn't even try" .. ?

If you want others to write code for you you should post under "Jobs offered" instead. This forum is meant for users experiencing difficulties when programming. If you decide to try it for yourself you have a look in the manual.
http://www.conitec.net/beta/mouse_pos3d.htmThis is almost exactly what you need. You just need to add one or two lines of code to the example.