Hello,
I have this:
class Tile
{
public Vector3 location;
public int contains_road;
}
each Tile has its own location and int of wheter it contains a road or not. So for example lets take this table. It is dispayed in x, y coordinates starting from 0 coord. and numbers represents does it have a road or not:
000111
001100
111000
I want to make a function which will return a bool value of wheter the road from 1 point to 2 is connected. for example:
isPathConnected(Vector3(0,3,0), Vector3(5,0,0). This should return true.
Anyone has a idea how could I acomplish this?