public List <Entity.Entity> FindNearbyEntities(Entity.Entity entity) { List <Entity.Entity> found = new List <Entity.Entity>(); if (entity.Intersects(Rectangle)) { if (divided) { found.AddRange(_topLeft.FindNearbyEntities(entity)); found.AddRange(_topRight.FindNearbyEntities(entity)); found.AddRange(_bottomLeft.FindNearbyEntities(entity)); found.AddRange(_bottomRight.FindNearbyEntities(entity)); } found.AddRange(Entities); } return(found); }