- Home /
How do I make the player rotate by following the mouse when I click?
He you guys, I just need to add a line so that when you click on the screen the player rotates with the mouse instead of it rotating automatically when I do not click. I am making a game for mobile devices so it needs to rotate when I click instead of it automatically following the mouse when I don't click on unity. Hope this makes sense. Here is my code.
Side Note- Dont focus on the players movement because I already altered it for mobile devices. I just need help on the players rotation.
alfbiqt.jpg
(193.4 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612155817im_/https://answers.unity.com/themes/thub/images/avi.jpg)