What the fish sees. Light from the insect bends at the surface by Snell’s law, sinθair = n sinθwater with n = 1.333. Seen from below the insect is therefore displaced along the extended sight line: for a nearly vertical view its apparent height is n H (one third too high), and the whole sky is squeezed into a cone of half-angle asin(1/n) = 48.6° (the Snell window). The surface crossing point is found by solving the two-medium refraction equation numerically (bisection), not by the small-angle formula.
What the jet does. The jet leaves the surface point above the eye and is treated as one compact droplet of diameter D, x’’ = −k|v| vx, y’’ = −g − k|v| vy with k = 3 Cd ρair / (4 ρwater D) (Cd = 0.5, a sphere), integrated by fourth-order Runge-Kutta. A jet does not refract once it is in the air: only the fish’s view of the target does. Hence three policies are drawn: straight along the sight line (ignores gravity and refraction), gravity-corrected aim at the apparent position (ignores refraction) and the compensated aim that really passes through the insect. The chart shows how far each one misses as the target moves sideways; shooting from nearly underneath makes refraction harmless because the sight line is almost normal to the surface.
Real fish. Archerfish (Toxotes) knock insects off overhanging plants with jets of water; experiments (e.g. Dill 1977; Rossel, Corlija and Schuster 2002) show they aim well despite refraction and adjust for target height and distance. This lab is a physics reading of that behaviour, not a model of the fish’s brain.
Honest simplifications. Illustrative jet speed and droplet size (real jets break into a body of drops and the fastest drop is at the front; the fish can also shape the jet so that the drops converge on the target, Vailati et al. 2012); 2D vertical plane only (no sideways wind); the jet origin is the surface point above the eye (error of order e); the insect is a point of 2 cm hit radius; no insect motion; water at rest; fish and insect are drawn larger than life for visibility.
Independent checks (run on load, same core as the 2D page):
| running… |