Brickheart

Bench anchors as parts, floating wall and cameras 15NOV2026

: Written by a human with AI assistance.

Status: anchors, seating, canvas growth and the floating wall built and working on the phone; corner cameras still not right (Open).

What changed in the code

  • The canvas front edge is fixed at z +160. It grows back and sideways, and the floor and grid move with it. This replaces growth from the origin.
  • Anchors are 8 studs apart, every second lattice point, so each 16 by 16 area has two. The first is a stud centre at x +10, z +130, and each size nests the previous one (16, 32, 64, 128). anchors.ts holds the lattice and the fill order.
  • An anchor is a red 85861 part in the scene, with ids from the normal row id generator, added by derive(). There is one free anchor at a time. A part put on it, or placed at its centre by the fallback, takes it and the next anchor appears. Undo needs no extra step. This replaces negative ids, hidden parts and the 2-stud distance test.
  • 85861 has clip, tube and open and no stud. seatOnAnchor seats hole[0] on open[0], extending back and right, through the existing jointCandidates. A new test, snap/anchor.test.ts, checks it. A part with no such pair is placed at the anchor centre.
  • The red ring marks the free anchor. The anchor colour and ring colour are constants until the settings registry exists.
  • The canvas size follows the free anchor, with the grow toggle as the minimum.
  • The wall floats 8 studs behind the build, clearing the free anchor, and no longer follows the canvas size. One buildExtent() (placed parts only, anchors left out) feeds both the wall and the corner cameras. 85861 was added to the pack closure list.
  • Corner cameras: the last patch restores the old positions, aims at the build centre, raises the ground views to 60 and pulls the front views out by 100. The owner still does not like the result.

Untested

  • The last camera patch, and whether 60 and 100 are the right numbers (Open).
  • Whether the wall is in shot for the front views and out of shot for the back views once the build grows (Open).
  • The wall sitting inside the 16 by 16 floor at the start (Verify).
  • 85861 in the offline closure, and speed at 128 studs (Verify).
  • Anchors show in history as ordinary entries. How they read on screen was not seen (Verify).
  • Parts with only a post or tube and no hole[0] take the centre fallback. Widening seatOnAnchor was proposed, not decided (Open).
  • seatFirstFree, nextFree, isFree and CLEAR in anchors.ts are unused (Verify).

Next steps

  1. Settle the corner cameras together with the wall, so the front views keep the wall in shot and the back views do not.
  2. Remove the unused anchor code, then run UAT.
  • Design: Bench design session 11NOV2026 attach ring anchors wall order, in the bench blog folder (Verify the link target).
  • Working rules: CLAUDE.md in the repo root.