Is there any way to rotate the camera without affecting character movement?

To be clear: you want to move the camera forwards and backwards?

Then you need a bit of code to change the boom arm length.

By default, the mouse rotation doesn’t affect the character.