Skip to content

ProjectWorldOptions

Defined in: packages/declarative-hex-worlds/src/coordinates/projection.ts:36

Options for projecting a world into a plan.

optional geometry?: HexGeometry

Defined in: packages/declarative-hex-worlds/src/coordinates/projection.ts:45

Hex world geometry used to place tiles (their position). Defaults to DEFAULT_HEX_GEOMETRY. Override for a board whose row spacing differs from a regular hex — e.g. a TILESET board whose cells bake a vertically-foreshortened (isometric) hex: its rows must be packed at height/2, i.e. depth = (4/3)·(width·cellHeight/cellWidth)/2, so full-cell quads interlock seamlessly instead of spreading ~3× too far apart in Z.