first person movement camera keeps stuttering.

Hello Folks

I was worikning on some first person movement but the camera keep stuttering when i move it with the mouse.

float mouseX = Input.GetAxis("Mouse X") * MouseSensitivity * Time.deltaTime;
        float mouseY = Input.GetAxis("Mouse Y") * MouseSensitivity * Time.deltaTime;

        xRotation -= mouseY;
        xRotation = Mathf.Clamp(xRotation, -90f, 90f);

        camtransform.localRotation = Quaternion.Euler(xRotation, transform.localRotation.y, transform.localRotation.z);

        mytransform.Rotate(Vector3.up * mouseX);

if annyone could shed some light on this issue that would be delightfull.

Remove the * Time.deltaTime from the first two line calculations.

This is a known issue in the Brackey’s tutorial you followed. Mouse input axes in particular are naturally framerate independent as they represent the absolute mouse movement delta since the last frame.

thank you :slight_smile: