SimulationNewQuadruped gait
Four legs that walk, trot and run without a single animation clip.

The HaTac engine’s four logistics parts, lifted whole and engine-free.
Connector paths route a belt, pipe, cable or rail between two typed ports: an orthogonal plan with filleted bends, standard heights, ramps eased at both ends or vertical risers, supports that stacked runs share, cutting in two, and an arc-length parameterisation that samples bends on their arcs. Item transport moves discrete cargo along belt segments on a fixed tick, event-scheduled so a stalled line costs nothing: sources, input ports with stock, splitters that rotate and filter, mergers that take turns, regrading, cutting and joining in place, and a whole-state save that replays item for item. Network flow solves pipes and vessels (free-surface heads, pumps, valves, one-way valves, sources and sinks, mass kept to 1e-12, components that sleep when settled) and power grids (supply, demand by priority, storage that charges and covers). Production statistics keep every counter in nested rings (1 s to 1 h, 48 hours deep) with minimum and maximum per bucket, answer sums, rates, ratios and top-N over any window, chart at one point per pixel, save in slices while play goes on, and upload a per-entity overlay (saturation, state, stress, headroom) to a GPU buffer only where it changed. No three.js, no dependencies; the overlay is the one WebGPU piece.
Measured 28 November 2026 on RTX 4060 Laptop, 13th Gen Intel(R) Core(TM) i9-13900H, Chrome 158, 1920×1080 at 1×. 600 frames × 3 rounds, median kept (rounds ranged CPU 0.72–0.77 ms). What ran: The four parts alone: the works simulated at 60 ticks a second (7 belts with a splitter and a merger, 3 machines, 7 fluid vessels and 6 pipes, a power grid of 8 nodes with a battery, 42 statistics series with three group roll-ups) after three warm minutes, drawn as a Canvas 2D plan, with the production panel (four figures, three time bars and a rate chart) read once a second. Phones: tiers are being measured next.
Frames run on a 60 Hz timer (a page demo), so most frames take about one tick, 16.7 ms: the spread around it is what matters.
install("factory-flow")Your coding agent reads its pitfalls and installs it through the library’s MCP server. Set it upground(x, z) posts stand at y = 0 and are as tall as the run’s height, so on terrain or floors they sink into hills and float over pits.From HaTac. Adapted from published work, named below.
Hannes Andersson: The HaTac engine’s connector paths, item transport, network flow and production statistics, their decisions, tests and measurements; the library’s glue and demo.