i'm using the script down below to make my camera look at mouse x and y position, and it has a limitation for my camera rotation.the problem is the way my camera rotates is not smooth at all.is there any way to make it smoothly look at position on x and y?
rotationX += Input.GetAxis("Mouse X") * sensitivityX;
rotationX = Mathf.Clamp(rotationX, minimumX, maximumX);
rotationY += Input.GetAxis("Mouse Y") * sensitivityY ;
rotationY = Mathf.Clamp(rotationY, minimumY, maximumY);
transform.localEulerAngles = new Vector3(-rotationY , rotationX, 0);