VR Interaction, Rotate fixed position object

Hey guys,
I’m not very good with math and have a problem.
I’m designing a VR mini-game, in which the player can rotate a floating object by touching it and hold the trigger button on the motion controller, and move the controller. like a floating sphere that revolves around its center via motion controller.
Any ideas or tutorials on how can this be achieved?
Also, I read this thread: Rotating an object at a point via Motion Controllers - XR Development - Unreal Engine Forums