I want to move a dropped Item to the nearest free Grid Cell.

How do I node to get the nearest Free Cell from Machine?

I did not find such an example in the 2D Grid Battle Tutorial, and I searched for Node with the Grid keyword but could not figure it out.
  • You can use the Select Grid Cells node to get cells, e.g. based on battle range templates (or custom range in the node) that only uses empty cells. The found cells will be stored in the defined selected data.

    Now, you can use them however you like, e.g. using a Select Nearest Game Object node to get the nearest cell (via it's game object) to a position/game object.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.