How to set up a CAMERA with automatic adjustment?

I m trying to create an auto-adjusting camera, but I m having a problem with the rotation, it rotates strangely. Is there another way to do this system?


up?

UP?

up?

Try the following:


Where “Camera Boom” - Your “Back Spring Arm”,
“SensX”, “SensY” and “Interp Speed” - variables you may adjust.

Note: You can (probably should) add a branch and check if the mouse moves.