PathTable.nodes

Node list

This is used to determine which triangle a creature should go next to reach a destination triangle.

`nodes[header.node_to_local_length * FromLTNIndex + DestLTNIndex] & 0b0111_1111 is an index in node_to_local` array, containing the next triangle to go to in order to reach destination.

FromLTNIndex, DestLTNIndex are values found inside the local_to_node array. <ul>

  • value & 0b0111_1111 is an index in node_to_local table
  • value & 0b1000_0000 is > 0 if there is a clear line of sight between the two triangle. It's not clear what LOS is since two linked triangles on flat ground may not have LOS = 1 in game files.
  • </ul>

    If FromLTNIndex == DestLTNIndex, the value must be set to 255.

    Note: does not contain any 127 = 0b0111_1111 values

    struct PathTable
    ubyte[] nodes;

    Meta