five-on-it / apps/level-editor/src/scripts/blocks/stairs
apps/level-editor/src/scripts/blocks/stairs
Marks a node of the editor scene as a flight of stairs: the same footprint as a ramp (low edge on the node's origin, climbing along +z, scaled to width, height and length), cut into steps treads; the simulation walks the slope through the step noses and the game draws the treads. An escalator (up or down) carries whoever stands on it along its length that way. The library's block:stairs carries it: place instances of that mesh for npm run level:export to read.