Node orientation/normal

Hi

@tealtxgr I believe @nehvaleem is talking about the normal, or slope, of the surface.

The nodes themselves don’t really have a normal. So this is not exposed anywhere. The graph visualization will instead position the y coordinate of tile corners at the average of all y coordinates of the nodes that touch that corner.

The relevant code is in the GridGraph.CreateNavmeshSurfaceVisualization method.

2 Likes