Wave Equation and Wave Speed

Wave speed v is frequency f times wavelength λ.

Textbook model

y = A sin(2π(x ÷ λ − f t))  v = fλ

compute the height at each position and time from amplitude, wavelength and frequency.

Simplified game model

Visual-only y = A sin(x + t) (no units)

water and flags only need to look right, so games add unitless sines per vertex. Speed and wavelength have no physical meaning there.

The textbook model is also an idealization with simplified conditions; real phenomena have more factors.

Simulator

Each point of the medium (a string, water, air) only moves up and down; only the shape travels.

When two waves meet their heights add up (superposition). Two identical waves travelling in opposite directions form a standing wave with fixed nodes.

How games use it

Water surfaces, waving flags and grass, sound visualizers.

More laws in this category

Physics Laws Quiz Waves

Sources

Checked: 2026-11-29