Struct TileLayout

Public

Represents the position and size of a tile grid for a recast/navmesh graph.

This separates out the physical layout of tiles from all the other recast graph settings.

Public Methods

GetTileBoundsInGraphSpace (x, z, width=1, depth=1)

Returns an XZ bounds object with the bounds of a group of tiles in graph space.

Public
GetTouchingTiles (bounds, margin=0)

Returns a rect containing the indices of all tiles touching the specified bounds.

Public
TileLayout (graph)
Public
TileLayout (bounds, rotation, cellSize, tileSizeInVoxels, useTiles)
Public

Public Variables

CellHeight

Voxel y coordinates will be stored as ushorts which have 65536 values.

Public
TileWorldSizeX

Size of a tile in world units, along the graph's X axis.

Public
TileWorldSizeZ

Size of a tile in world units, along the graph's Z axis.

Public
cellSize

Voxel sample size (x,z).

Public
graphSpaceSize

Size in graph space of the whole grid.

Public
tileCount

How many tiles there are in the grid.

Public
tileSizeInVoxels

Size of a tile in voxels along the X and Z axes.

Public
transform

Transforms coordinates from graph space to world space.

Public