Struct TrnNWN2WalkmeshPayload.Triangle
Mesh Triangle + pre-calculated data + metadata
struct Triangle
;
Fields
Name | Type | Description |
---|---|---|
center
|
float[2] | X / Y coordinates of the center of the triangle. Calculated by avg the 3 vertices coordinates. |
dot_product
|
float | Dot product at plane |
flags
|
ushort | See Flags
|
island
|
ushort | Index in the TrnNWN2WalkmeshPayload array.
|
linked_edges
|
uint[3] | Edges to other triangles (uint32_t if none, but there should always be 3)
|
linked_triangles
|
uint[3] | Adjacent triangles (uint32_t if none)
|
normal
|
float[3] | Normal vector |
vertices
|
uint[3] | Vertex indices composing the triangle |
Enums
Name | Description |
---|---|
Flags
|