What I want is that an AI shoots at the player. The Player is moving in that time so the AI needs to aim for another position (Hit location). I am doing that in 2d and with constant velocity
What I have is:
velocity of player
speed of bullet
position of player
position of AI (initial bullet pos)
And I need the position where it will hit (or the angle at witch the projectile will be shot but then I need to change some code)
Can someone help me with that