I'm utilizing Unity's Vector3 method, ScreenToWorldPoint.
In short, I can click anywhere on a GameObject and obtain the Vector3 of where the click was in the game. However the result I'm obtaining is the Vector3 directly in front of the camera, rather then where I'm truly clicking on the surface of a given GameObject in the scene.
I want the coordinates of exactly where I click on the surface of a GameObject.
To obtain the Vector3 of exactly where you click on the surface of a GameObject utilize the following code:
We create a ray from our mouse on screen and cast it into the world to calculate the exact position of where the mouse is in the scene.
You want to Raycast from the camera to the object. See the help pages for more Manual: Rays from the camera