The goal line is where the front edge of the goal sits. It spans the entire interior dimension of the goal mouth. Its anchoring x coordinate should be its center (e.g. half of the line's width should be on each side of the x anchor)
x
Useful links