Skip to content

NavGrid Get Cell At Transform Position

Converts a Transform position to a NavGrid cell.

Parameter Description
NavGrid Grid used for conversion.
Transform Transform whose position is converted.
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 Transform to an agent.
  2. Store Cell and In Bounds.
  3. Use Cell as a seed or path start value.

See also