Im trying to determine where a “shot” will hit the wall from a position and an angle.
The player shoots a ball from a certain point with a certain angle towards a wall. And I want to be able to determine if the ball will hit within the bounds of the goal.
This is what i know:
origin: the ball’s coordinates
length: the distance to the wall
angle: the angle of the shot
This is what i want to calculate:
point: the position the ball will have when it hits the wall

Thanks in advance!
unless i’m missing something: