public vector2d goToAim(vector2d aim) {
        vector2d value = new vector2d(0, 0);
        if (this.type != 0) {// zrobic opcje dla wszystkich
            return value;
        }

        double d;
        if (aim.getX() < 0 && aim.getY() < 0) {
            if (aims == null || indexAims == -1) {
                return value;
            }
            value = aims.get(indexAims).getVec().minus(this.position);
            d = value.getSLength();
            if (d < 5*skala*5*skala) {
                if (indexAims >= aims.size() - 1) {
                    indexAims = 0;
                } else {
                    indexAims++;
                }
            }
        } else {
            value = aim.getVec().minus(this.position);
            d = value.getSLength();

        }

        if (d >10*skala*10*skala) {
            value.normalize();
        } else {
            value.normalize().multi(d / (10*skala*10*skala));
        }

        return value;
    }