Wiki
Clone wikiRtsPlayMakerActions / Action / ClosestTileIndexFromWorld
Closest Tile Index From World
Gets row and column of tile closest from a position in world space.
Remarks
Retrieves index of tile at edge of tile system when position is out of range.
Input Variables
- Tile System Component : Rotorz.Tile.TileSystem
- Tile system.
- World Position : Vector3
- Some position in world space.
- Every Frame : bool
- Indicates if action should be repeated for every frame.
Output Variables
- Row Index : int
- Zero-based row of tile.
- Column Index : int
- Zero-based column of tile.
Updated