private bool DetectCollisionBetweenSelfAndOthers(CollisionZone <Bullet> BulletCollisions, Bullet ActiveBullet)
        {
            System.Collections.Generic.HashSet <Bullet> Obstacles = BulletCollisions.GetCollidableObjects(ActiveBullet);
            foreach (Bullet ActivePlayer in Obstacles)
            {
                if (ActivePlayer.Collision.CollideWith(ActiveBullet.Collision, Vector2.Zero, out _, out _, out _))
                {
                    return(true);
                }
            }

            return(false);
        }
Esempio n. 2
0
 public HashSet <WorldPolygon> GetCollidingWorldObjects(Projectile ActiveAttackBox)
 {
     return(WorldCollisions.GetCollidableObjects(ActiveAttackBox.Collision));
 }