Red dot = Origin of rotation Blue Dot = Point rotating around origin Drag the dots to where you want Use left and right to rotate the blue dot Use up and down to change the distance to origin
Now the distance is held no matter how much the red dot moves live. So instead of looking if the red dot is being dragged (in the code) and stopping the blue dot movement, you can just drag it without issues! Update #2: fixed the bug where the dot would fly out the screen when touching the center