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.
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!