TrnNWN2WalkmeshPayload.Tile

Tile with its path table

Members

Functions

dump
string dump()
Undocumented in source. Be warned that the author may not have intended to support it.
findPath
uint32_t[] findPath(uint32_t fromGTriIndex, uint32_t toGTriIndex)

Calculate the fastest route between two triangles of a tile. The tile need to be baked, as it uses existing path tables.

getPathNode
ubyte getPathNode(uint32_t fromGTriIndex, uint32_t toGTriIndex)
Undocumented in source. Be warned that the author may not have intended to support it.
validate
void validate(TrnNWN2WalkmeshPayload aswm, uint32_t tileIndex, bool strict)

Check a single tile. You should use TrnNWN2WalkmeshPayload.validate() instead

Structs

Header
struct Header
Undocumented in source.
PathTable
struct PathTable

Tile pathing information

Variables

edges
Edge[] edges;

Only used if header.owns_data == true

header
Header header;
Undocumented in source.
path_table
PathTable path_table;
Undocumented in source.
vertices
Vertex[] vertices;

Only used if header.owns_data == true

Meta