- Home /
How To Make a 3d object follow mouse and move towards it while the camera is following that 3d object?
I need to make a character move towards the mouse when I press space. When it's looking at the mouse it should rotate about y axis.
Answer by tormentoarmagedoom · Jan 26, 2019 at 02:34 PM
Good day.
You are asking so many things at same time.. If you have no clue how to do it, you should spend some hours watching tutorials and reading about all this functions (google them):
Camera.WorldToScreenPoint
Input.MousePosition
LookAt
Input.GetKey
Input.GetKeyDown
Transform.rotate
NavMesh System
Good Luck! Bye!
Hello @tormentoarmagedoom Actually I've watched a lot of tutorials but no tutorial is working for me. Have you ever played surviv.io? $$anonymous$$y goal is to make something very similar. If you have a clue how to do it, please submit! Have a good day!