- #1
ChichoRD
- 4
- 0
Hi, I am a game developer and recently found myself in a situation where I wanted to create an enemy that shoots at you given a set of variables. The game takes place in a top down view so there is no need for gravity acceleration, just 2d linear constant movement.
The question to answer is: Given the known position for the player (p), his velocity (v); the position of the enemy (ep) and the modulus of the vector at which the projectile will be fired (ev), find the angle the bullet should use.
The question to answer is: Given the known position for the player (p), his velocity (v); the position of the enemy (ep) and the modulus of the vector at which the projectile will be fired (ev), find the angle the bullet should use.
Last edited: