moving an object on the y and x axis to mouse location
Hey guys, I have been trying to figure this out for 2 days now.
I have a camera pointed towards a map ( the map is rotated to 90 degrees so that I could work on x and y axes)
On the map I have a character object (which is basically a character image on a plane object), and I want to move it to where the mouse pointer is located ON CLICK.
I want it to work on mouse click and have it work the same way transform.Translate moves the object.
Simple as that, just cant seem to make it work.
Thanks for the help.
Comment