I am working on a Aviation Controller. I was wondering how to make it to where if my cursor center location is the screen width / 2, and screen height / 2. So that the center position is the center of the users screen. The farther the cursor is from that center position the more the aircraft will change its rotation. Here is a picture example:
The left is a diagram of what I am saying. The right is the players screen and how it would look to them.
How would I go about doing this? I can’t get much further than,
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);