DocsNodesValues

Grid Cell

Turns a position in the world into which cell it is over.

which tile, cell index, position to tile, lookup, coordinates
Category
Values
Outputs
value
Runs live in
no target yet

The bridge between something moving around in space and a board that thinks in cells. Give it a position and the board's dimensions and it tells you the cell underneath.

That number is what every other grid node takes, so this is normally the first thing between a moving player and the board.

Inputs

SocketTypeWiring

Parameters

NameTypeDefaultAvailable whenWhat it does
Xnumber0always
Znumber0always
Widthnumber10always
Heightnumber10always
Spacingnumber1always

Built with this node

Nothing in the manual is built around this node yet.

See also

  • gridReadTo find out what is stored in the cell you just identified.
  • cellWriteTo claim it.

Open the editor and try it