How to achieve camera orbit rotation in C++ without springarm?

Good day!
I want to make an orbit camera rotation in c++ without using springarm component. How can I achieve that?

Not being snarky at all, but what’s wrong with the spring arm? Doesn’t do something you need?

@teak421 It’s just not work for my purposes. I have different camera controllers scripts, so the camera are separated from the pawn