How to rotate camera in FPS with joystick
i want to rotate my camera with a joystick, as we move our player in FPS with a joystick. first time working on FPS. need help Thanks
Answer by TeohRIK · Oct 29, 2015 at 07:22 AM
If you using Unity provided First Person Controller, you can just adding new input information in the Input Manager with the name of Mouse X and Mouse Y
Answer by $$anonymous$$ · Jun 06, 2016 at 07:52 PM
@walaoRIKI I tried this solution and it doesn't seem to work for my setup; the setup is working with the mouse (the rotation works properly) but is not functioning for the joystick. To be clear, I only want the character to be able to "look around" the scene; not to move positionally.
I know that the joystick (which is a 12-button game controller) is connected because for some reason the "Jump" input works using joystick button 3.
Is there a script that needs to be implemented in an addition to the changes you showed above?
Thanks for your help!
I have indeed that exact very same problem.... no solution so far?
Answer by oblink · Apr 12, 2017 at 01:25 PM
Thanx WalaoRIKI! Needed that info. It works for me with my x-box controller using your method, though I had to use 4th axis on the new mouse X I created.
Your answer
Follow this Question
Related Questions
How can I stop my FPS camera from rotating 360 degrees? 1 Answer
How to bring UI element infront of other objects? 0 Answers
Transform.Rotate x and y rotate z, where z is 0 0 Answers
Cut viewport Rect of the camera in half 0 Answers
Rotate camera upward. 0 Answers