private static Rectangle CalculateFutureDrawArea(Projectile projectile, float deltaT) { return new Rectangle( projectile.DrawArea.TopLeft + projectile.Get<SimplePhysics.Data>().Velocity * deltaT, projectile.DrawArea.Size); }
// remove a projectile from the collection public bool removeProjectile(Projectile p) { if(p == null) { return false; } return removeProjectile(m_projectiles.IndexOf(p)); }