hex-world
    Preparing search index...

    Function createLayout

    • Creates a HexLayout that maps cube coordinates to world space.

      Parameters

      • orientation: HexOrientation

        POINTY_TOP or FLAT_TOP from HexOrientation.

      • size: number

        Hex radius in world units (center to corner).

      • originX: number = 0

        World-space X offset of the grid origin. Default 0.

      • originZ: number = 0

        World-space Z offset of the grid origin. Default 0.

      Returns HexLayout

      const layout = createLayout(POINTY_TOP, 1);