ana DRIVE
You're driving in a city built for four dimensions. Its ground is 3D, so a street is a sheet and a road is where two sheets cross: six ways out of every crossing, four of them out of the slice you see, toward ana or kata. The autopilot is driving; press ↑ (or go) to take over, pick your turn on the pad, space to hand back.
turn at the next crossing
laying out the city…

DRIVE

a city for four dimensions

In four dimensions the ground under your wheels is three-dimensional. To divide a 3D ground into blocks, a street has to be a sheet, a slab 10 m thick, as a line divides a plane. So the blocks are cubes, each split into eight plots, and the city is a ball of town round its core: the same plots laid flat would sit two and a half times further out. Towers stand in the middle, villas at the edge (FLY's native city, ana/fly).

A road is where two sheets cross: a line. Roads run on three axes, so a crossing has six ways out: on, back, and four turns. Your eyes hold forward, right and up; the slice of the ground you see is a plane through your road, so of the four turns, none lies in it. Each one goes partly right or left and partly ana or kata, out of what you can see. Take one and the slice turns with you: a new street, new buildings, cut from the same city.

Driving on the right needs a right, and a line in 3D ground has a whole plane round it, with no right. So here a lane sits off the centre line along the diagonal between the road's two cross axes. The slice you see holds that diagonal, so both lanes, and the oncoming cars, are in view. Swing (↺ ↻, or Q and E) turns the slice round your road, and the street you see changes: at 45° you are looking straight down one of the sheets your road lies in, a wide paved square.

The lights give each axis its turn: green 9 s (amber at the end), then 2 s all red, so a cycle of 33 s. Between districts, whose grids are turned against each other, links run along the border sheets, with no lights.

controls, and what's exact

Keys: ↑/W go, ↓/S brake (either takes the wheel from the autopilot); ←/→ choose your turn at the next crossing; space hands back to the autopilot; Q/E swing the slice, X squares it up; V the camera, N the time of day, R a new destination, P pause. Touch: go and brake bottom right, the turn pad bottom left (its dots are the next crossing's ways out: right and left across it, ana up, kata down, on in the middle).

Every building is a box in its district's grid; the slice cuts it in a polygon, raised straight up, so what you see is exactly what FLY's buildingAt says is there (the selftest compares them at 20,000 points). The same goes for the cars, which in 4D are boxes too. The slice of the planet is a sphere 1.3 km in radius: the street ahead drops away over the horizon, and from the driver's seat that horizon is 70 m off. The traffic is FLY's (fly/js/traffic.js): 600 cars on the lattice, following distances by the intelligent driver model, deterministic.