private void dyingUpdate(Vector3f orientation, float distance){
        double time = ((double)Time.getTime())/((double)Time.SECOND);
        double timeDecimals = time - (double)((int)time);

        if(deathTime == 0)
            deathTime = time;

        final float time1 = 0.1f;
        final float time2 = 0.3f;
        final float time3 = 0.45f;
        final float time4 = 0.6f;

        if(time < deathTime + time1){
            material.setTexture(animations.get(6));
            transform.setScale(1,0.96428571428571428571428571428571f,1);
        }else if(time < deathTime + time2){
            material.setTexture(animations.get(7));
            transform.setScale(1.7f,0.9f,1);
        }else if(time < deathTime + time3){
            material.setTexture(animations.get(8));
            transform.setScale(1.7f,0.9f,1);
        }else if(time < deathTime + time4){
            material.setTexture(animations.get(9));
            transform.setScale(1.7f,0.5f,1);
        }else{
            state = DEAD;
        }
    }