Trying to make a really smooth mouse look.

Ok so you get the mouselook script and well, it just seems jerky. You move the mouse and it just dosent seem smooth at all. And when using it for 360 degree movement, its buggy as hell and when youre upside down, the controls are reversed.

So here are the problems:

  1. Using mouselook creates strange rotation bugs when rotating beyond a certain amount of degrees. (min and max values set at -360 and 360)
  2. If the ship is upside down, the left and right movement gets reversed.
  3. It all seems a bit jerky and not smooth at all.
  4. its in c#

Heres the very unclean, unsmooth, jerky feeling script that I have so far based on what I am trying to achieve:

This script should make you rotate faster or slower based on how far and fast you move the mouse.

var turnSpeed = 5;
 
function FixedUpdate(){
        transform.Rotate(-Input.GetAxis("Mouse Y") * turnSpeed * Time.deltaTime, Input.GetAxis("Mouse X") * turnSpeed * Time.deltaTime, 0.0 * Time.deltaTime, Space.World);
}

seems so much simpler too. 2 lines of code. lol.