Creates a HexLayout that maps cube coordinates to world space.
HexLayout
POINTY_TOP or FLAT_TOP from HexOrientation.
POINTY_TOP
FLAT_TOP
HexOrientation
Hex radius in world units (center to corner).
World-space X offset of the grid origin. Default 0.
World-space Z offset of the grid origin. Default 0.
const layout = createLayout(POINTY_TOP, 1); Copy
const layout = createLayout(POINTY_TOP, 1);
Creates a
HexLayoutthat maps cube coordinates to world space.