i think GetAxis(“Horizontal”) and GetAxis(“Vertical”) is more clean and return 1 or -1 the you can multiply for 10 and get 10 or -10 and put to your camera position and evuela :p.
i dont try this code but something like thats i means
in fixedupdate method. i change the input key of horizontal to A and D with no alternative key and the vertical i dont gona use, and thats why i use the arrows key to move the camera.
well if u are using horizontal and vertical for de player i think you can craate a axis por the camera ej: CameraHorizontal and CamaeraVertical and asign the arrows key and use this ones for the camera maybe dont affect to the player movemnt
Yep early this morning (like 1am xD) i was read about delta time, transform.translate, input.getaxisraw and other things in the manual and i do that way. I create a new Input for Horizontal and Vertical only for the camara works like 50% is cool but i dont know why dont return to origin i was reading in Input if Snap combobox was enable the object (in this case the Camera) return to origin. So i gona continue works.