Every launch in Target Launch follows the path a real ball would take with no air resistance. The game runs on the same tested equations as our projectile motion simulation, so every landing point matches what the equations of motion predict. A real ball is also slowed by the air, so it would land a little shorter.
The key idea is that the ball's motion splits into two parts that do not affect each other. Across, nothing pushes or pulls the ball once it has left the launcher, so its horizontal velocity stays the same for the whole flight. Up and down, gravity pulls it towards the ground, slowing it on the way up and speeding it up on the way down, by 9.8 metres per second every second. The vertical motion decides how long the ball is in the air. The horizontal motion decides how far it travels in that time.
Why does 45° go furthest on level ground?
A steep launch keeps the ball in the air for a long time but sends it across slowly. A shallow launch sends it across quickly, but it lands almost at once. From level ground at a fixed speed, 45° is the angle where time in the air and speed across combine to give the longest range. Pairs of angles that add up to 90°, like 30° and 60° or 20° and 70°, give equal ranges.
Why is the best angle lower from a cliff?
From the top of a cliff the ball keeps falling after it passes launch height, so it spends extra time in the air whatever the angle. A lower angle puts more of the speed into the horizontal part, which makes better use of that extra time. The higher the cliff, or the slower the launch, the further below 45° the best angle is.
How do walls and gaps change the answer?
Many different launches reach the same landing point: a high lob and a low, flat shot. A wall rules out the low paths, because the ball is still too low when it gets there. A window in a tall wall rules out the high ones. Choosing the path, not only the distance, is a big part of the later levels.
How do you hit a moving target?
Work out how long the ball will be in the air, then launch so that the target reaches the landing point just as the ball does. On level ground the time of flight is twice the upward part of the launch speed divided by g, so a higher or faster launch gives the target longer to move while the ball flies.