public void avanza() {
        if (mov) {
            double time = (double)(System.currentTimeMillis() - startTime)/1000;
            setDoublePosX(x + vx * time);
            setDoublePosY(y - (vy*time - 0.5*aceleracion*time*time));
        }
    }