Door geometry: thick doors and door push #50
Notifications
Due Date
No due date set.
Blocks
Depends on
#49 Wall wire format, schema and migration
SirStone/FFF_vtt_frozen
#45 Thick walls: sight and movement
SirStone/FFF_vtt_frozen
#46 Secret and locked doors
SirStone/FFF_vtt_frozen
Reference: SirStone/FFF_vtt_frozen#50
Reference in New Issue
Block a user
Part of #38
Question
When walls have thickness, what is a door: a leaf inside a deep opening or a thick wall segment? How do opening, closing and the door push (and stuck/squeezed) work with it, for plain, secret and locked doors?
Context: research in docs/research/walls-sight-thick-low.md (#39).
Fixed by #42 (DESIGN 5.8)
terrainwall is not a door and never triggers the push.Question (narrowed)
With thickness (#45), what is a door: a leaf inside a deep opening, or the full thick segment? How do open/close, the push geometry and
stuck/squeezedwork in the thick case, and does the leaf swing matter?Input from #44 (DESIGN 5.9, decided)
Input from #45 (DESIGN 5.10, decided)
|ab|xthickness, square ends,positioncentre/left/right of the drawn line. Sight uses the 4-face quad; movement uses exact distance to the rectangle with a centre inside counting as overlap. What a door's body is (leaf in a deep opening vs the full thick segment) is this card's.stuck. 5.5's push moves a token perpendicular to the door, with thickness against its body, to>= r; that body's shape is this card's.Input from #48 (DESIGN 5.8, decided 2026-11-16)
secretandlockedare checkboxes on any door, not presets: a secret door isdoor+secret, a locked doordoor+locked; the preset namessecret_door/locked_doorare gone (wire preset set:wall,door,window,one_way).door:true,blocks_sight:false): it can be locked (an opening window refuses to open until the GM unlocks it) and it can never be secret (a see-through secret door would show itself;secretrequires both block switches on). A fixed window hasdoor:false, so it never closes and never triggers the push.blocks_sightis already off, so opening it changes only movement, and a locked window'sdoor.set open:trueisinvalidlike any locked door (#46).What we decided
A door is a piece of wall, and its leaf is its own body (DESIGN 5.8, 5.10). No separate leaf inside a deep opening, no clamp to the neighbouring pieces: the door stores the same
a,b,thicknessandpositionas any wall, and that body is the leaf for sight, movement and the push. The jambs are ordinary walls, so the doorway is just the gap between wall pieces. A thick door bulges out or leaves a step exactly as drawn, and a deep opening between thick jambs keeps the tunnel/keyhole view already accepted in #43. Open/close only add and remove that body: no swing, no slide, no hinge, no arc.The close push is measured from the body (DESIGN 5.5, rewritten):
dist(c, body) < rmoves out of the side its centre is on, along that side's normal, by the smallest offset that ends>= rfrom the body (+PushEps);prev's side, defaulting to the left ((-dy,dx)) ofa -> b;r; past an end it is the offset from the nearest end corner, keeping the along-axis coordinate;rof any blocking body) → the other side; both invalid → the token stays and getssqueezed, and the door still closes. No axial slide out of a doorway, no chain, no retry;prev/hasPrev. This order rule is final, not a later "fix".Settled consequences: locked doors and opening windows push exactly like a plain closed door; a fixed window (
door:false) never closes so it never pushes; a secret door pushes exactly as a solid wall (#46's equivalence holds for thick doors); edits never push (5.10); height never enters (5.9).Delegated picks (recorded FIXED (owner-delegated))
foot + n·sqrt(r²−e²)generalised). A radial displacement from the corner was rejected: it also moves the token along the axis and would break the byte-for-byte zero-thickness gate.t = 0.PushEps= 1e-6 px reused.pushFromon the same inputs; the existing push tests run unchanged as the regression gate (10.3).Recorded in
docs/DESIGN.md: header v0.28, 5.4, 5.5, 5.8, 5.10, 10.3, 14.GLOSSARY.md: new Door entry, Wall body and Squeezed wording.Commit
2a160fbonmain(not pushed). No new wire field for doors: the leaf is the existing thickness/position body — passed to #49.