How to sync controls with camera in rolling ball templete

Cool. Ill give this a try. But for reference. Just so im learning and not just doing.

How is it determining axis to rotate. And force to apply off 1 vector value. I figured that was just enough information to tell it where to pivit the rotation

edit i tried the modification. and it didnt seem to work