Pathfinding.PathHandler.GetPathNode C# (CSharp) Method

GetPathNode() public method

public GetPathNode ( GraphNode node ) : PathNode
node GraphNode
return PathNode
		public PathNode GetPathNode (GraphNode node) {
			// Get the index of the node
			int ind = node.NodeIndex;

			return nodes[ind >> BucketSizeLog2][ind & BucketIndexMask];
		}

Same methods

PathHandler::GetPathNode ( int nodeIndex ) : PathNode

Usage Example

コード例 #1
0
ファイル: PointNode.cs プロジェクト: Bjeck/BM-RTS-game
		public override void UpdateRecursiveG (Path path, PathNode pathNode, PathHandler handler) {
			UpdateG (path,pathNode);
			
			handler.PushNode (pathNode);
			
			for (int i=0;i<connections.Length;i++) {
				GraphNode other = connections[i];
				PathNode otherPN = handler.GetPathNode (other);
				if (otherPN.parent == pathNode && otherPN.pathID == handler.PathID) {
					other.UpdateRecursiveG (path, otherPN,handler);
				}
			}
		}
All Usage Examples Of Pathfinding.PathHandler::GetPathNode