Hi, I want to make my player face the mouse pointer. (Twin stick shooter like)
After some failed tries, I googled, found this.
Now I “translated” it to C#, but I always get the error ‘Camera’ does not contain a definition for ‘ScreenPointToRay’
Code: Ray myRay = Cam.ScreenPointToRay(Input.mousePosition); // cam is defined as "public Camera cam;" and a camera is assigned in unity
Why is that? How can I fix it?