Hi all. I have a boss in my game who floats above the player. Simple. But I want him to be able to swoop down onto the player. Not so simple.
I THINK I need to set a cubiccurve from the boss's original location, toward where the game predicts where the player is going to be (via approximate aim or something), along the point of where the boss is in relation toward the player, and end up twice the horizontal distance it took to travel (so using a lerp to find double the distance between where the boss was original and where he hit the trough of his swooping curve). The thing is... is that there are so many variables and things that I don't really understand.
Here, I'll draw an example of what I want via Inkscape:
Where the blue triangle is the boss's original position, the green his dynamic position, the circle the player (or where the game approximates he's going to be), and the red triangle the place I want the boss to end up (twice the X distance from the original position of the boss to the player).