|
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. thanks, ng93
(comments are locked)
|
|
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: works great thanks
Aug 05 '10 at 05:14 PM
ng93
(comments are locked)
|
