How to drag mouse on circular arrow

Hi Guys,

I want to achieve a functionality describe below:

  • I want to drag mouse on arrow in curve form (see attached image)

  • I want to know length/position (0-1 meter) of mouse on the arrow while dragging

  • Mouse should not goes out side the arrow while dragging, if possible.

Please help me to achieve this functionality, how can I do this?

Thanks in advanced :slight_smile:

If I understood correctly, you want to drag something visually along a given line? I suggest taking the mouse coordinates input and approximate the closest value on the curve, to display the mouse cursor there. For example, if the curve would be a straight horizontal line, just display the cursor on the x value of the mouse position and the y value of the line.