The snake waiter: a 720° plate twirl that untwists itself

An 8-ball-joint snake (4 body + 4 head) spins a plate twice round while keeping it level. After one turn the snake is knotted into a pose 360° f joint angle away from home; after the second turn it is standing straight again. Switch to the naive twist to see it wind up without limit. The D5 diagram shows which moves are active, and the octagon counts beats of the Coxeter element (c⁸ = one turn). The third mode drives him straight from the affine Coxeter word, and shows why that alone isn't enough.

drag to orbit · scroll to zoom

Move amplitudes on affine D̃5

Each node is a crank showing where that move is in its stroke. Hand down = its minimum this cycle, then clockwise: left = rising, up = maximum, right = falling. The height of the hand is where the move sits between its min and max. δ is the master clock (one revolution = the full 720°). On the full trick, arch and yaw stay in step with δ, rotate and pan run a quarter turn ahead, and tilt a quarter turn behind.

The number beside each name is the angle per joint ÷ joint limit (so ±1 = at the stop; a red ring means over the limit). Tap a node to switch that move off.

All 31 composites on the belt-trick path

Sorted by worst plate tilt over the full 720°. Net spin is how far the plate turns overall. Tap a row to load it.

moves onmax tiltnet spin

Coxeter clock

c acts on its Coxeter plane as a 45° rotation, so 8 beats make one turn and 16 make the full trick.

What drives the animation

Segment at height s ∈ [0,1] along the chain (0 = ground, 1 = plate) has orientation, as a unit quaternion,

qs(t) = exp(πt·k) · exp(πt·us),   us = sin(πs)·i − cos(πs)·k,   t ∈ [0,1]

At s = 0 this is the identity (bolted to the ground). At s = 1 it is exp(2πt·k): pure spin about vertical, 720° in total, so the plate stays level. Every intermediate segment also closes its loop, because exp(πk)·exp(πu) = (−1)(−1) = 1. Each joint's relative rotation qs−1−1qs is split into bend (2 DOF) and twist (1 DOF); summing those over the body and head gives the five move amplitudes on the diagram.

The joints follow these targets through damped springs coupled to their neighbours. This is the "linear return force that propagates the motion":

ëk = −ω² ek − κ (2ek − ek−1 − ek+1) − 2ζω ėk,   ek = rk − r*k

Here rk is the rotation vector of joint k. Lower the stiffness and you can watch lag ripple up the chain, and the plate tilt readout climbs.

The D5 layer

Moves are the simple reflections: rotate – arch – pan (branch node) – tilt / yaw. On the move torus θ ∈ ℝ⁵/2πQ∨ the affine Weyl group acts, and the natural invariant potential is a symmetric polynomial in the cosines:

V(θ) = κ Σα>0(1 − cos⟨α,θ⟩) = κ (20 − 2 e₂(cos θ₁,…,cos θ₅))
θ̈ᵢ = −2κ sin θᵢ Σj≠i cos θⱼ  →  θ̈ ≈ −8κ θ for small θ

The 8 is the Coxeter number h, because Σα>0 ααT = h·I. In the affine extension, the space h ⊕ ℝδ ⊕ ℝd carries the form |θ|² − 2τt, which has signature (6,1): that is your hyperbolic time direction. Its only polynomial invariant is that norm; every other invariant has to be periodic (characters of Spin(10)). That is why V is built from cosines.

Two phases: wind up, then mirrored rewind

All five moves are active at once, but they don't move in step. Rotate, pan and tilt follow sin(2πt): they rise, return to 0 at 360°, then swing the other way. Arch and yaw follow (1 − cos 2πt)/2: a single hump that peaks at 360°. The two groups are a quarter-cycle apart, so together they trace a loop rather than a line. Running together carries him to the halfway point (plate at 360°). There, rotate, pan and tilt are back to 0 and all the bend sits in one vertical plane: arch ≈ 135°, yaw ≈ 225°. The snake is a loop-the-loop with the plate level on top. At that point his head passes about 0.1 units from body segment 3, the tightest clearance of the whole move.

The second half is the first half played backwards and mirrored by a 180° turn about the axis perpendicular to the loop:

rk(1 − τ) = diag(−1, +1, −1) · rk(τ)  ⇔  rotate, pan, tilt change sign; arch, yaw keep theirs

This holds exactly, for every joint, to 10−15. The other second-half rules in the menu fail. Flipping everything tips the plate 177°. Plain reversal brings him home, but it un-twirls the plate by 360°.

Experiment: drive him with the affine Coxeter word

In Alcove walk mode, each beat crosses one wall of the D̃5 alcove complex: the word c̃ = sδ·srotate·sarch·span·stilt·syaw (other orderings in the menu), repeated. The alcove's centre b gives yi = ⟨b, αi⟩, and these become moves. Twists (rotate, pan) wind at 180° per unit of y. Bends (arch, tilt, yaw) can't wind, so they use 50°·sin(π y): bounded, and periodic on the torus.

What comes out. For all 720 orderings, the linear part of c̃ has order 6 (angles ±120°, 0°, 180°, 180°). Every 6 c̃ = 36 beats is therefore a pure translation, and that translation always moves all four leaves of the diagram by ±2: rotate and δ, tilt and yaw. Read literally, the head bends ride that drift, and the plate tips past 90°. If instead the head is used to keep the plate level (tick the box), the plate stays exactly flat and turns 360° every 36 beats. But the snake's distance from home grows by about 316° each period. So the Coxeter word reproduces the naive twist, not the belt trick.

Why. A Coxeter element of affine type is a glide: a translation plus a finite-order rotation. Translations wind, and winding never comes back. The belt trick is a closed loop that returns home after 720°, so as a word in W̃ it would need trivial translation part. That means it lives in the finite group W(D5), or it is a loop on the torus that is contractible on the joints but not in move space. Either way, it isn't c̃n.