Hi, i’m currently writing a custom handles system for my building tool. The problem with using handle adornments is that they don’t provide a distance parameter unlike handles, how does Roblox calculate the distance from a handle’s MouseDrag?
Bumping this up as im still confused on this.
Not an expert on this and may provide not the best information…
There’s definitely gonna be some math involved in this, and what I think you could do is this:
Whenever you drag something, your cursor position would be mapped onto an imaginary plane parallel to the direction you’re dragging. The “distance” here would be (positionOnPlane - startPosition).Magnitude, where positionOnPlane is the position of the cursor on the plane, and startPosition would be the initial position on the plane when the player started dragging.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.