Ok so I made a camera and then I put this script onto it.
var horizontalSpeed : float = 2.0;
var verticalSpeed : float = 2.0;
function Update () {
var h : float = horizontalSpeed * Input.GetAxis ("Mouse X");
var v : float = verticalSpeed * Input.GetAxis ("Mouse Y");
transform.Rotate (v, h, 0);
}
it work great but, the only thing is when the camera turn it not straight it go into a 45 angle or something like that. I just want it when you move the mouse left and right it move left and right, and when you move it up and down it go up and down. but down move it up and up move it down. I’m not sure how to fix this PLZ HELP.
(1) Fix the Up is down and down is up
(2) Make it so the camera go straight