Target manipulator Rotating in all directions


has anybody converter existing sub-symbol “Target manipulator”, to rotating object in all directions, not just around vertical axis?

Originally, on pointerDown event, we calculate difference between start and end point of horizontal swipe, then we rorate for calculated amount.

If not, maybe some sugestions, how to aproach to solve this?
Which functions to use…

Thank you,