Skip to content

NavGrid Get Cell At World Position

Converts a world position to a NavGrid cell.

Parameter Description
NavGrid Grid used for conversion.
World Position World-space position to convert.
Cell Optional output full cell coordinate (x, y).
X Optional output x index.
Y Optional output y index.
In Bounds Optional output true if the position maps inside grid bounds.

Example

  1. Set World Position from mouse world point.
  2. Store Cell and In Bounds.
  3. Use results for click-to-move or highlighting.

See also