|
How would I go about getting what position my mouse is pointing in a game environment? For example, if I'm pointing at the foot of a tree at position (100,50,0), how would I make it get the position of (100,50,0) or where the mousever the mouse would hit?
(comments are locked)
|
|
Search first. Ask if you get stumped. Exactly. This is one of the most answered questions out there.
Apr 23 '11 at 07:20 PM
Joshua
I'm aware of Input.mousePosition. What I'm trying to do at the moment is get the position the cursor is aiming at. And I've been searching for an answer for about an hour. Mind cluing me in?
Apr 23 '11 at 08:01 PM
Arch 1
I've tried to teach you to fish (google search).. but this time i'll just throw the fish at ya. http://unity3d.com/support/documentation/ScriptReference/Camera.ScreenToWorldPoint.html Learn to search though!
Apr 23 '11 at 08:16 PM
flaviusxvii
(comments are locked)
|
