AI Flappy Bird Processing Java

Is there a way to use the look function but make the line point frontwards instead at an angle, I guess frontwards is relative to the game lol, but when I look at the lines in my game all are hitting walls. I was wanting one to point the way the enemy should go. You can see my course in the picture I posted yesterday.