Function GridNodeBase.GetNeighbourAlongDirection
        
                GetNeighbourAlongDirection
        
                (int direction)
    
            
            Adjacent grid node in the specified direction.
                Public
                    Abstract
            
        GridNodeBase GetNeighbourAlongDirection (
int  |     direction  |         
Adjacent grid node in the specified direction.
This will return null if the node does not have a connection to a node in that direction.
The dir parameter corresponds to directions in the grid as:         Z
        |
        |
     6  2  5
      \ | /
--  3 - X - 1  ----- X
      / | \
     7  0  4
        |
        |
Note
This method only takes grid connections into account, not custom connections (i.e. those added using Connect or using node links).