smooth out LookRotation

Hi there guys

Due to a very complex parent child (and localRotation) setup, I was obligated to use transform.LookAt to let my 2d character look at my mouse. Now I’m stuck, trying to smooth it out. Can someone please help me out here? This is the lookat code, pretty handy atually…

Vector3 mousePos = mainCamera.ScreenToWorldPoint(Input.mousePosition);
            Vector3 newPos = new Vector3(mousePos.x, mousePos.y,0);
            transform.LookAt(newPos,transform.up);

Thank

anyone that can help?

bump

Mathf.Smooth.Damp maybe?