five-on-it / apps/tools/src/kits
apps/tools/src/kits
Kits: the pieces modelled in Blender, read from their glTF binary and sidecar (apps/level-editor/assets/kits/<kit>.glb and <kit>.foi.json, written by assets/blender/foi_export.py) and installed in an editor scene as source meshes the designer places instances of. A piece arrives in the glTF frame (+y up, right-handed, Blender's +Y forward along −z): one rotation turns it into the game's frame (game = (−x, y, −z)), and the mirror of frame.ts turns that into the editor's. Every source mesh carries metadata.foi (its kind, its collider, its roads in the editor's frame) and a material per colour, which is what the export reads back.