Function TriangleMeshNode.DecodeVariantPosition

DecodeVariantPosition (uint pathNodeIndex, uint fractionAlongEdge)

The position of the path node during the search.

Public
Int3 DecodeVariantPosition (

uint

pathNodeIndex

uint

fractionAlongEdge

)

The position of the path node during the search.

When an A* search on triangle nodes is carried out, each edge of the node is a separate path node variant. The search will additionally decide where on that edge the path node is located. This is encoded by the fractionAlongEdge variable. This function decodes the position of the path node.

Note

Most node types only have a single path node variant and does not use the fractionAlongEdge field. In those cases this function only returns the node position unchanged.