@Override
		public void mouseDragged(MouseEvent arg0) {
			if(renderEngine == null) return;
			if(hold != null){
				Point pos = arg0.getPoint();

				Point offset = new Point(pos.x - hold.x, pos.y - hold.y);

				switch(radioManager.getSelectedIndex()){
				case(0):
					renderEngine.translate(offset.x, offset.y, 0f);
				break;
				case(1):
					if(arg0.isShiftDown()) renderEngine.rotate(0f, 0f, offset.y);
					else if(arg0.isControlDown()) renderEngine.rotateLightSource(offset.x, offset.y, 0f);
					else renderEngine.rotate(offset.x, offset.y, 0f);
				break;
				}


				if(pos.x > width){;} //TODO set mouse location to 0 on panel and add height to offset?
				if(pos.y > height){;} // TODO set mouse location to 0 on panel and add height to offset?
			}

			//hold = pos;
		}