This is kinda hard to explain.

When a user clicks and holds on a point, I want a line to come out of the point. At the moment, it sets it's angle in the direction of the mouse. That's only half of it, though. I want the line to resize itself to make it so that it's height reaches out from the point that it's snapped too, to where the mouse it. But I'm not sure how to do this, as the line can go in 360 directions, so a simple YMouse-YObj won't work.

Is there a formula that will make this work? My source code is below should you need it

Source code

Thanks