public void visitInRange(int id, AABB range, IEntityVisitor visitor) {
		Set<Entity> entities = structure.queryRange(new HashSet<Entity>(),
				range);
		Iterator<Entity> it = entities.iterator();
		while (it.hasNext()) {
			Entity entity = it.next();
			if (entity.isRemoved) {
				continue;
			}
			EntityComponent component = id == -1 ? null : entity
					.getComponent(id);
			if (component != null || id == -1) {
				visitor.visit(entity, component);
			}
		}
	}