private void constrainModelViewToWorld() {
		View resetView = model.getCurrentView();
		Vector2f resetCenter = resetView.getCenter();
		float currentLeftX = resetView.getCenter().x - (resetView.getSize().x/2);
		float currentTopY = resetView.getCenter().y - (resetView.getSize().y/2);
		IntRect worldDimensions = model.getWorldDimensions();
		
		if (currentLeftX < model.getWorldDimensions().left) {
			resetCenter = new Vector2f(worldDimensions.left + (resetView.getSize().x/2), resetCenter.y);
		} else {
			if (currentLeftX + resetView.getSize().x > worldDimensions.left + worldDimensions.width) {
				resetCenter = new Vector2f(worldDimensions.left + worldDimensions.width - (resetView.getSize().x/2), resetCenter.y);
			}
		}
		
		if (currentTopY < model.getWorldDimensions().top) {
			resetCenter = new Vector2f(resetCenter.x, worldDimensions.top + (resetView.getSize().y/2));
		} else {
			if (currentTopY + resetView.getSize().y > worldDimensions.top + worldDimensions.height) {
				resetCenter = new Vector2f(resetCenter.x, worldDimensions.top + worldDimensions.height-(resetView.getSize().y/2));
			}
		}
		
		resetView = new View(resetCenter, resetView.getSize());
		model.setCurrentView(resetView);
	}