The archerfish needs to correct for the air-water interface refraction.

The viewing angle of a target above the water level is shifted towards the zenith due to Snell’s law. The fish needs to correct for this shift to hit the target in its actual position. The jet itself is affected by gravity and it does not proceed straight from the fish’s mouth to the target.

Schematic view of the experimental setup.

A. Water tank with a cover and a target above it. Airflow applied horizontally to the water’s surface deflects the fish’s shot. B. An example from a video capturing the experiment. The airflow was oriented from right to left. The water jet is visible just before the impact at the target. C. Experimental timeline of the first experiment: 5 to 10 shots before the introduction of the airflow, 10 to 15 shots with the airflow, 5 to 10 shots after the removal of the airflow. D. Experimental timeline of the second experiment: 5 to 10 shots before the introduction of the airflow, 8 to 12 shots with the airflow in one direction, 15 to 20 shots with the airflow in the opposite direction, 5 to 10 shots after the removal of the airflow

Examples of fish responses to the perturbation.

A. Experiment 1 setup: airflow in direction 1 - with the fish shot. B. Experiment 1 setup: airflow in direction 2 - against the fish shot. C. Example sessions for three fish that had to adapt to the perturbation in direction 1. Error was around zero during the baseline condition, increased with the introduction of the perturbation, and diminished with time. After the removal of the perturbation, the error was in the opposite direction. D. Example sessions for the fish that had to adapt to the perturbation in direction 2. E. All sessions for one example fish with the perturbation in direction 1. F. All sessions of one example fish with the perturbation in direction 2.

The archerfish can correct for perturbation using motor adaptation.

A. Response of three fish to the perturbation. Direction of the airflow is with the fish shots. Black dots are the error values across the sessions, the black line is the mean error value, and the SE is highlighted in green. B. Response of three fish to the perturbation. Direction of the airflow is against the fish shots. C. For three fish that that shoot in direction 1: Mean value of the error and 95% HDI for epoch 1 – the baseline, epoch 2 – first two trials after the introduction of the airflow, epoch 4 - last two trials before the termination of the perturbation, epoch 5 – first two trials after the termination of the perturbation. D. For the four fish that shot in direction 2: Mean value of the error and 95% HDI.

Adaptation in two directions sequentially reveals that motor adaptation is performed in the fish’s egocentric reference frame.

A. Experimental setup: Airflow applied horizontally to the water’s surface deflects the fish’s shot. The fish first adapted to the perturbation in one direction and then enforced the switch direction of the shoot. B. For the fish that changed direction from shooting in the direction with the perturbation to against the perturbation: mean error value and SE for the baseline trials, trials at the beginning and at the end of the adaptation period, trials at the beginning and the end of the adaptation period in the opposite direction and the beginning and the end of the washout period. C-D. For the fish that changed direction from shooting in the direction against the perturbation to shooting with the perturbation: mean error value and SE for the baseline trials, trials at the beginning and the end of the adaptation period, trials at the beginning and the end of the adaptation period with reversed direction and at the beginning and the end of the washout period. E. Mean value of the error and 95% HDI for epoch 1 – the baseline, epoch 2 – first two trials after the introduction of the airflow, epoch 4 - last two trials before the change in the direction, epoch 5 – first two trials after the direction change, epoch 7 – last two trials before the termination of the perturbation, epoch 8 – first two trials after the termination of the perturbation.