Foil-Brain is a real-time physics simulator for hydrofoil riding. Built for a browser with Three.js, dynamic Gerstner waves, fractional Brownian motion, Schlick Fresnel approximations, subsurface scattering, GGX microfacet specular, and more.
Your goal: find the pocket — the fast-moving face of the wave where gravity-driven slope acceleration keeps your board flying. Pump to build speed, manage your energy, and stay airborne.
Physics are still being dialed in, and overall a work in progress. This project is just for fun, but I think it can improve your swell riding.
-AndyO