How could I make a wheel movement sistem like this?

Hi!
So I wan´t to make movement system similar to this:
gif
So the player will be able to rotate a ui element and that will rotate a model, how could I do that?
Do I need some super complex math?