Example #1
0
 public static bool enemyBulletToPlayer(Bullet bullet, Player player)
 {
     float distance = (bullet.getPosition() - player.getPosistion()).Length();
     if (distance < (bullet.getCollisionRadius() + player.getCollisionRadius()))
     {
         return true;
     }
     return false;
 }