Question by
kelloffsean · Jun 18, 2018 at 06:19 AM ·
fpsmousefps controller
Y Mouse Movement without the tilting
I have been trying my hand at coding from scratch and learning as much as possible but for some reason this answer is alluding me. When I created my mouse movement scripts I did it based off of the Input calls so var y = Input.GetAxis("Vertical") time.deltaTime mousespeed; var x = Input.GetAxis("Horizontal") time.deltaTime mousespeed; then I had transform.rotation(y, x, 0);
Moving the mouse left and right works perfectly but when I go to move up and down it tilts the screen at weird angles instead of doing the standard fps thing so is it in my Rigidbody or something or is it the actual code itself being not applicable?
Comment