A better analogy is a ship sailing against the wind: "To reach its target, sailors that intend to travel windward to a point in line with the exact wind direction will need to zig-zag in order to reach its destination. This technique is tacking."
https://www.lifeofsailing.com/post/how-to-sail-against-the-w...