The Cell class is located in the GridManager.cs file.
This class stores information about a cell.
int x is the x position of this cell.
int z is the z position of this cell.
int yPos is the y position of the cell.
bool isAvailable is whether this cell has an obstacle inside of it.
parentCell, gCost, hCost, and fCost all are used for the A* algorithms. fCost will return gCost + hCost.
Cell(int x, int z, float yPos)
Cell(int x, int z, float yPos, Cell parentCell)
Vector3 GetPosition()
Returns the x, yPos, and z integers respectfully.
There was an error while loading. Please reload this page.