Skip to main content

public 3d-motion repository

windsurf-simulator

// viachm/windsurf-simulator

A free 3D browser game that teaches real windsurfing physics — sail trim, apparent wind, planing, balance. No install, 20 languages, works on mobile.

$ git log --oneline --stat
stars:2forks:0updated:2026-08-04
README.md
readonly

Windsurf Simulator icon

Play in your browser

Website

Deploy

three.js r160

Vanilla JS, no build step

Desktop and mobile

20 languages

MIT license


You control the same levers a real windsurfer has: sheet angle, mast rake, foot stance, body lean, daggerboard and harness. The board responds the way a real one would. There is no rudder and no arcade shortcut: you steer by moving the sail, you plane when the physics say you can, and you get catapulted when you get greedy with the power.

Nothing to install. Open windsurfsimulator.com on a desktop, tablet or phone.

See it sail

Carve a gybe on the plane

The board planing on a broad reach and carving a gybe, with the compass, speed, sail power and balance instruments updating live

Start on autopilot, or watch a lesson

New riders can leave Autopilot on: it trims the sail and holds your balance, so you can steer and learn the points of sail without falling. Switch it off to practise for real. Or tap ▶ DEMO and the board sails a whole guided lesson by itself (Beginner or Freeride), narrating each step. Touch any control to take over.

On your phone

Windsurf Simulator on a phone: the board planing on a beam reach, with the full instrument HUD

The physics

Real mechanicIn the game
A sail is an airfoil: its angle of attack controls liftSheet slider vs. the moving green "optimal trim" tick. Too far out: luffing (flaps, no power). Too far in: stall (heel force, no drive).
Apparent wind swings forward as you accelerateThe optimal trim tick moves toward 0° as you speed up, so you must keep sheeting in. Drive dies when the apparent wind reaches the bow (your natural top speed).
No rudder: you steer by moving the sail's centre of effortMast rake: back to luff up (turn upwind), forward to bear away (turn downwind).
No-go zone, about 45° either side of the windThe sail cannot drive there; you stop and drift backwards ("in irons").
The rider counters the sideways pullWindward lean slider and balance meter. Too little lean for the power: catapult. Too much lean when the power dies: you fall in backwards.
The daggerboard resists leeway at low speed but lifts violently at high speedDown: little sideways drift. Up: you slip sideways when slow. Down while planing: spinout crash.
Planing: above a speed and power threshold the hull skims and drag collapsesReach about 8 kn with good power on a beam or broad reach: PLANING badge, big acceleration. Then move back into the straps or you'll pearl the nose.
The harness carries the load but commits you+38% effective lean, but gusts fling you faster when overpowered. Hooking in needs real pull in the sail.
Tacking and gybingManoeuvres with realistic entry conditions: a tack needs speed and an upwind-ish course, a gybe starts from a broad reach. The sailor switches sides.
HydrofoilTurn on Foil in settings: a foil replaces the daggerboard, and at speed the board lifts out of the water.
Gusts and wind shiftsTrue wind oscillates ±15% and wanders ±6°. Watch the GUST readout.

⚠️ It's a learning toy, not a certified trainer. The physics are a faithful simplification meant to build intuition, not to replace time on the water.

Controls

Do thisKey
⛵ Sheet in / outW / S (hold)
🧭 Bear away (downwind) / luff up (upwind)← / → (hold; the mast rake springs back on release)
🏄 Less / more windward leanQ / E (hold)
🦶 Stance: front / neutral / back straps1 / 2 / 3
⬇️ Daggerboard up / downD
🪝 Hook in / out of the harnessH
🔄 Tack / gybeT / G
↩️ ResetR
🎥 Orbit / zoom the cameradrag / scroll (pinch on touch)
  • Every control is also in the on-screen panel, so it plays fully by touch on a phone.
  • "Smart interlocks" refuse impossible combinations (hooking into a powerless sail, back straps with no speed…) and explain why.

Languages

20 languages: English, Українська, Deutsch, Français, Español, Italiano, Português, Nederlands, Polski, Čeština, Svenska, Dansk, Suomi, Ελληνικά, Türkçe, Bahasa Indonesia, Русский, 中文, 日本語, 한국어. The game picks your browser language and remembers the one you choose. Each has its own page, for example windsurfsimulator.com/uk/.

English and Ukrainian are hand-written; the other 18 are AI-translated and not yet reviewed by native speakers, so corrections are very welcome.

How it's built

  • three.js r160 for the WebGL scene, self-hosted so the game loads even where public CDNs are blocked.
  • Plain ES modules: no build step, no bundler, no framework.
  • Static files on GitHub Pages, deployed by GitHub Actions on every push to main.
FileWhat it does
site/src/sim.jsPhysics: apparent wind, sail lift curve, points of sail, planing, foiling, balance, crashes
site/src/world.jsthree.js scene: sea shader, wind streaks, board, rig and sailor, splash and wake
site/src/ui.jsControl panel, interlocks, autopilot, HUD meters, compass
site/src/demo.jsThe guided demo lessons
site/src/i18n.jsTranslations for all 20 languages
site/src/main.jsGame loop

Contributing

Issues and pull requests are welcome, especially:

  • Translation fixes for any of the 18 AI-translated languages, in site/src/i18n.js.
  • Physics tweaks that make a mechanic feel truer to life.

To try a change, serve the site/ folder with any static server (python3 serve.py does it with caching off) and reload the page.

License

MIT. Made by Viacheslav Mukha, with help from Claude (Anthropic).

metadata.json
HTMLbrowser-gameeducational-gameGameshtml5-gamejavascriptphysicssailingsailing-simulatorSimulationssimulatorThree.jswatersportsWebGLwindsurfwindsurfing

[INFO] 4 topics link to curated motion topic pages.