It is only colliding if the red circles are touching, as you can see there is trouble when the lines are parallel for some reason. if one of the lines is tilted even 1 degree the collision works. Please help if you know how to fix this.