private void DYING(Vector3f direction, float distance)
    {
        double time = (double)Time.getTime()/(double)(Time.SECOND);

        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(textures.get(8));
            transform.setScale(1,0.96428571428571428571428571428571f,1);
        }
        else if(time < deathTime + time2)
        {
            material.setTexture(textures.get(9));
            transform.setScale(1.7f,0.9f,1);
        }
        else if(time < deathTime + time3)
        {
            material.setTexture(textures.get(10));
            transform.setScale(1.7f,0.9f,1);
        }
        else if(time < deathTime + time4)
        {
            material.setTexture(textures.get(11));
            transform.setScale(1.7f,0.5f,1);
        }
        else
        {
            state = STATE_DEAD;
        }
    }