title: Dealing with Projectile Misses and trajectory
body: <p>I have several formulas I use for firing a bullet at a target, but it all breaks down when the player moves from his original position and the bullet reaches the old position of the player as intended.</p>
  
  <p>When PlayerPosition == BulletPosition, how do I make the bullet keep going in the right direction if it misses? My problem is once the bullet reaches where it was supposed to go it stops and I need a new formula to keep it moving.</p>
  
  <p>If it hits the player, that's easy, remove the item, but I can't seem to find a good solution. Below is some code, it's super simple for now.</p>
  
  <pre><code> var movement = PlayerPosition - Position;
          if (movement != Vector2.Zero)
              movement.Normalize();
          //var angle = Math.Atan2(movement.Y, movement.X);
          Position += movement*_projectileMoveSpeed;
  </code></pre>