Adventure Creator 1.84.3
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2024
Loading...
Searching...
No Matches
AC.AStar2D.Grid2D Class Reference

Public Member Functions

 Grid2D (Collider2D _collider, float _cellWidth, float _cellHeight)
void Rebuild ()
void DrawGizmos ()
Node GridToNode (int gridX, int gridY)
Node PositionToNode (Vector2 position)
int PositionToGridX (Vector2 position)
int PositionToGridY (Vector2 position)
int GetNeighbours (Node node, ref Node[] neighbourArray)
bool IsPointInside (Vector2 pos)
void ClearCharHoles ()
void AddCharHole (Vector3 centre, float radius, float yScale)
bool Approximately (float f1, float f2)

Properties

int MaxSize [get]