TrnNWN2WalkmeshPayload.Triangle

Mesh Triangle + pre-calculated data + metadata

Members

Enums

Flags
enum Flags
Undocumented in source.

Variables

center
float[2] center;

X / Y coordinates of the center of the triangle. Calculated by avg the 3 vertices coordinates.

dot_product
float dot_product;

Dot product at plane

flags
uint16_t flags;

See Flags

island
uint16_t island;

Index in the TrnNWN2WalkmeshPayload.islands array.

linked_edges
uint32_t[3] linked_edges;

Edges to other triangles (uint32_t.max if none, but there should always be 3)

linked_triangles
uint32_t[3] linked_triangles;

Adjacent triangles (uint32_t.max if none)

normal
float[3] normal;

Normal vector

vertices
uint32_t[3] vertices;

Vertex indices composing the triangle

Meta