Just like, in fact, trying to make a sailing boat track towards a particular target. Which is easy enough. (And don't forget that sailing is harder because there are three vectors to worry about - heading, wind and tide - rather than just two - heading and wind.)