public void render(Graphics g) {
		Graphics2D g2d = (Graphics2D) g;
		AffineTransform transformation = new AffineTransform();
		//rotiere den Vogel
		transformation.translate(x, y);
		try {
			double xOrient = (double)direction.getY();
			double yOrient = (double)direction.getX();
			double pos = Math.atan2(xOrient, yOrient)+Math.PI / 2;
			transformation.rotate(pos);
			g2d.setTransform(transformation);
			
		} catch (Exception e) {
			// TODO: handle exception
		}
		// zeichne das Dreieck
		g2d.setColor(color);
		g2d.fillPolygon(triangle);
		
	}