|
I need to click the terrain and know the location which i clicked at in order to tell a unity to go to that location. how do I click the terrain and retrieve at which location I clicked? should I use a raycast and collision or what? HELP!
(comments are locked)
|
|
Use a ray, e.g.
lol, identical
Apr 22 '10 at 03:18 PM
spinaljack
My CopyPaste-Fu is stronger than yours! :)
Apr 22 '10 at 03:21 PM
Molix
(comments are locked)
|
|
Send a ray cast from mouse position then you can get all the information you need from the raycast hit
mine has the vector3 of the point under the mouse though
Apr 22 '10 at 03:19 PM
spinaljack
(comments are locked)
|
function Update() {
(comments are locked)
|
