Question by
Dasti · Feb 25, 2018 at 08:07 AM ·
2dlookatmouse position
How to relaise LookAt
How to make so that the object on which the script hangs, looked at the mouse. If the camera is hung on the object.
Comment
Answer by Hamburgert · Feb 25, 2018 at 10:37 AM
Trying to understand the question. You have a script on an object. You want the object to look at the mouse. The camera is also on the object.
So this means you want a First Person view control of some sort.
Take a look at the Unity standard asset first person controller. (import standard assets and place the prefab) Also, google for "Unity FPS" and you will find a lot of helpful information, including how to use the "Character Controller".