public void collision(Robot player) {
		float eps = (float) 1e-01;
		float n = player.getTaille();
		if ((Math.abs(player.getY() - center.getY()) - (getHeight() / 2 + player
				.getTaille() / 2)) < eps) {
			float x_gauche = player.getX() - n / 2;
			float x_droite = player.getX() + n / 2;
			float p_gauche = center.getX() - getWidth() / 2;
			float p_droite = center.getX() + getWidth() / 2;

			if ((x_droite <= p_droite && x_droite >= p_gauche)
					|| (x_gauche <= p_droite && x_gauche >= p_gauche)) {
				onBloc = true;
			}
			collisionAction(player);
		}
		onBloc = false;
	}