Greetings from Brazil. I'm developing a 2D shoot' em up game In this game genre, is quite common to have enemies that shoot aiming at the player's current position. Since in my code all positions and speed are represented with 2D vectors, the formula to calculate the desired enemy shot direction is quite simple: (playerx,playery)-(enemyx,enemyy).
However, I want to try a different twist. Instead of having enemies that aim at the player CURRENT position, I want to create enemies that instead aim at the player FUTURE position. Both player speed and enemy bullet speed are constant. Is there any vector formula that I can use to calculate the enemy bullet direction, so it'll intercept the moving player? Thanks in advance!