GUI lines with different possible lengths and angles

Hey all,

I’m doing a pin system on 3D objects where you define a 3D point on it, and there is 2D GUI that has a little pin there, and a line to a bigger button.

The two pins can be represented on the screen easily, but I’d like a simple black line connected them. Since the 3D object can be rotated, the pins will change in position and distance, and the line between them would change accordingly.

What’s the easiest way to represent this line?

There might be better ways, but you can try that.