Solved it!
just had to add the following line…
points[1] = info_container.position.unproject(camera).normalize()
that updates the end of the line with the new 2nd point, which keeps the line static relative to a hidden
canvas element that is set to have the scene
as the parent
…