meshes
The Henter's geometry, and the bake that writes it out.
Every shape the hero slice draws is defined here as a function over
game.hero.shapes, and bake() turns each one into a durable .mesh asset
under /source/game/hero/. The component resolves the assets by identity and
never builds geometry at runtime, so every client in the world draws the same
vertices out of one shared GPU mesh.
require("game.hero.meshes").bake() -- every mesh
require("game.hero.meshes").bake("lantern_cage_mesh") -- just one
The bake returns a row per mesh with its triangle count and local AABB, so a shape can be checked without rendering it. Change a profile below, run the bake, and the figure is different on the next frame.
The parts
| Mesh | |
|---|---|
henter_cloak_mesh | One fall of heavy cloth from the shoulders to the ground, waving in and out five times around the hem. Narrows hard above the waist so the sleeves have somewhere to come out of. |
henter_hem_mesh | The band of mantle cloth turned up along that hem. |
henter_mantle_mesh | A short shoulder cape in a different cloth. Its six-lobed hem breaks the cloak's five, so the two never line up. |
henter_hood_mesh | A cowl whose peak leans further forward the higher it climbs, and whose front is genuinely open — the quads over the face are left out. |
henter_arm_mesh | A sleeve hanging from the shoulder at its own origin, flaring at the cuff. |
henter_pole_mesh | The tapered stave, with a weighted butt. |
henter_pole_brass_mesh | Two collars, a ferrule, and the hook the lantern hangs from, bent forward out of the top. |
lantern_cage_mesh | Roof, two rings, six corner posts, base pan and hanging ring — built hanging BELOW its own origin, so it swings from the right point. |
lantern_glass_mesh | Six panes, drawn from both sides so the lantern has an interior. |
glew_spark_mesh | A six-point spark with alternating spike lengths. |
glew_halo_mesh | Five nested shells in one mesh: additive, they build a radial falloff out of geometry alone. |
Landmarks
CHEST_Y is the pivot every part above the waist is built around;
SHOULDER and ARM_LENGTH place the sleeves; POLE_HOOK is where the lantern
hangs, in the stave's own space. The figure stands 1.94 m, hem on the ground.
Scoped to this part · feeds back into the world's score.