So I’m working on a little tycoon type thing just for fun. For moving around items on the player’s base, I’m using Handles and ArcHandles.
I got handles to work after a bit, and honestly they work great. Those are the ones used for move/resize in studio.
ArcHandles, however, I am struggling greatly with, in no small part due to my minimal comprehension of basic geometry. The main issue I’m having with them is that the MouseDrag event returns a face, and distance value as expected, but the distance value makes no sense to me whatsoever. From what I can gather it goes from -6 to 6 depending on the direction of mouse movement, and then flips back to the other once it hits the maximum value.
I would include more information but I really don’t understand what it’s doing. Essentially I was hoping someone could just explain it to me a little better?
I have never used ArcHandles so this may not be what you need, but it sounds like the distance is in radians rather than degrees.
360 degrees translates to 6.28319 radians, 180 degrees is pi radians.
Other way around, math.rad converts to radians, math.deg is what you need as it converts to degrees. If you ever work on a platform that doesn’t have easy conversions, the function is simple - D = R/Pi * 180