Log inGet started
World

Raise the Roof: Build Mode, Snapping and Base Pieces Kit

README.md

snap

Where a piece goes, in the three snap modes: grid (slabs on cell centres, walls on cell edges, posts on corners, using gridKit's square geometry), surface (exactly at the aim, turned in fine steps, mounting torches and ladders on walls) and socket (piece to piece: the nearest socket of a placed piece that one of the kind's plugs fits). Snap.solve(ctx) returns ranked candidate poses; the controller takes the first the rules accept. Pure, so it is tested without play mode.