- Home /
Changing Input.GetAxis camera to cursor movement instead
Hey, so I recently found this script: https://forum.unity.com/threads/complete-camera-collision-detection-third-person-games.347233/ that has been an immense help for my project, but I was wondering how I could change the 'input' so that instead of the camera being moved by the WASD and arrow keys it is instead moved by the cursor. Any insight into this would be greatly appreciated!
Thanks
Answer by Ermiq · Mar 01, 2021 at 09:27 AM
Input.GetAxis("Mouse X")
for horizontal mouse input, Input.GetAxis("Mouse Y")
for vertical.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Rotate Camera on axis and X axis not working 1 Answer
Keep Camera from player at a certain distance while orbiting around player 2 Answers
How do I let a camera follow on one axis? 3 Answers
Is there a way to lock my camera's rotation and movement on certain axis? 2 Answers