public void update()
	{
		if(opening)
		{
			double time = (double)Time.getTime()/(double)Time.SECOND;
			
			if(time < openTime)
			{
				double lerpFactor = (time - startTime)/(openTime - startTime);
				
				transform.setPosition(openPos.lerp(closedPos, (float)lerpFactor));
			}
			else if(time > openTime && time < startCloseTime)
			{
				transform.setPosition(openPos);
				open = true;
			}
			else if(time > startCloseTime && time < closeTime)
			{
				if(!closing)
					AudioUtil.playAudio(closeNoise, transform.getPosition().sub(Transform.getCamera().getPos()).length());
				
				closing = true;
				open = false;
				double lerpFactor = (time - startCloseTime)/(closeTime - startCloseTime);
				
				transform.setPosition(closedPos.lerp(openPos, (float)lerpFactor));
			}
			else
			{
				closing = true;
				opening = false;
				open = false;
			}
		}
		else
			transform.setPosition(closedPos);
	}