hex-world
    Preparing search index...

    Function worldToHex

    • Converts a world-space (x, z) point to the nearest hex cell. Useful for cursor-to-hex picking on a flat map; for elevated terrain prefer pickHexFromMeshes which raycasts the actual geometry.

      Parameters

      Returns HexCoord