public void update()
	{
        if(isOpening)
        {
            double time = (double)Time.getTime()/(double)Time.SECOND;
            if(time < openTime)
            {
                float lerpFactor = (float)((time - OpenStartTime) / TIME_TO_OPEN);
                getTransform().setTranslation(VectorLerp(closePos,openPos,lerpFactor));
            }
            else if(time < closingStartTime)
            {
                getTransform().setTranslation(openPos);
            }
            else if(time < closeTime)
            {
                float lerpFactor = (float)((time - closingStartTime) / TIME_TO_OPEN);
                getTransform().setTranslation(VectorLerp(openPos,closePos,lerpFactor));
            }
            else
            {
                getTransform().setTranslation(closePos);
                isOpening = false;
            }
        }
		
	}