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
- Set World Position from mouse world point.
- Store Cell and In Bounds.
- Use results for click-to-move or highlighting.