So I'm using the following code to draw a line from one object to another:
Set object "Line" X Scale to "Distance(X( "A" ), Y( "A" ), X( "B" ), Y( "B" ))"
Set object "Line" angle to "ATan2(Y( "A" ) - Y( "B" ), X( "B" ) - X( "A" ))"
The problem is when aiming any direction other than right, the line becomes slightly off center as you can see in the image below. I want the start of the line to always be attached to the white pixel in the center of the blue box and the end of the line to always be attached to the other white pixel. I've attached an example of the problem. Any ideas?