layers

Parameters

layers

lattice height (z-axis, typically altitude) Corner-cutting (MOORE_26 only):

  • By default (allowCornerCutting = false) a diagonal move (face-diagonal √2 or body-diagonal √3) is permitted only when every axis-neighbor it passes between is passable — i.e. for each nonzero offset component, the voxel reached by that component alone must be passable. This prevents agents from clipping through blocked voxels at shared edges/corners.

  • Set allowCornerCutting = true to require only that the destination voxel be passable.

  • Has no effect under VON_NEUMANN_6 (only orthogonal moves).