this code works on a distance from the centre of the screen.
how to work on a distance from a perticular 3d object (that can also move through screen, on runtime)?
I would check the mouse position when it goes over the object, but the mouse doesn't have to pass over the object. it just needs to know what's the mouse X and Y distance from the object.