Struct TrnNWN2WalkmeshPayload.Triangle

Mesh Triangle + pre-calculated data + metadata

struct Triangle ;

Fields

NameTypeDescription
center float[2]X / Y coordinates of the center of the triangle. Calculated by avg the 3 vertices coordinates.
dot_product floatDot product at plane
flags ushortSee Flags
island ushortIndex in the TrnNWN2WalkmeshPayload.islands array.
linked_edges uint[3]Edges to other triangles (uint32_t.max if none, but there should always be 3)
linked_triangles uint[3]Adjacent triangles (uint32_t.max if none)
normal float[3]Normal vector
vertices uint[3]Vertex indices composing the triangle

Enums

NameDescription
Flags