Log inGet started
World

The House Wears a Face

Branchmain
Branchesmain
Commit8e7f3baa4a

README.md

HallFloorChew

The checkerboard stops being flat. Attached to H_Floor, the group holding the ballroom's 176 squares; every child named T_<i>_<j> is picked up and the parity of i + j decides whether it is a black square or a white one.

Two numbers drive it, and they are different things:

  • chew — black squares sink and white squares rise, in a slow wave crossing the room on period seconds. This is the floor eating, and it is what shots 7 and 12 are about.
  • grin — the squares lying near the curve z = 2.6 - 0.055 x² climb clear of the rest. From the ceiling hole in shot 12 the floor is resolving into a mouth; from the station in shot 14 the smile line is a ridge running across the room.

Each tile also tilts with the chew, so the floor reads as broken rather than as a field of lifted blocks.

What it carries

  • chew, chewTarget, chewRate, grin, grinTarget, grinRate — all six are 0 in shot 1 and are authored that way on component.add, targets and rates included.
  • period — seconds the wave takes to cross one tile's phase cycle (6.5).
  • restY — the height a flat tile sits at.

Methods

  • ref:chewTo(v, secs) — drive the chew toward v over secs.
  • ref:setGrin(v, secs) — drive the smile line toward v over secs.

Who drives it

The stagecraft slice's FaceRig: chew from its CHEW curve, grin from its REFORM curve, every frame. demo.hall's M.setChew and M.setReform reach it and are what M.restPose() uses.

Cost

176 tile transforms and 176 rotations per tick. It declares both update and editorUpdate and guards them on engine.mode, because the film runs in edit with the simulation going and the engine fires both there — unguarded, the wave runs at twice its authored period and the writes are doubled.