hi im trying to get a Vector3 of the mouse cursors position on the terrain, and then place an object there. ive tried:
but the ray is not drawn and although the object appears over the mouse cursor, it is too close to the screen.
asked Aug 05 '10 at 03:58 PM
You will not see the ray unless you move the camera, because you're looking along the ray.
If you want to find the intersection of that ray with the terrain (and therefore the length of that ray), you need to do a Physics.Raycast with that ray:
answered Aug 05 '10 at 04:39 PM