Navigation
API > API/Runtime > API/Runtime/Navmesh > API/Runtime/Navmesh/Recast
References
| Module | Navmesh |
| Header | /Engine/Source/Runtime/Navmesh/Public/Recast/Recast.h |
| Include | #include "Recast/Recast.h" |
| Source | /Engine/Source/Runtime/Navmesh/Private/Recast/Recast.cpp |
void rcCalcTriNormals
(
const rcReal * verts,
const int nv,
const int * tris,
const int nt,
rcReal * norms
)
Remarks
Calculates the normals of each triangles in an array
Parameters
| Name | Description |
|---|---|
| verts | An array of vertices. [(x, y, z) * nv] |
| nv | The number of vertices in the verts array. |
| tris | The triangle vertex indices. [(vertA, vertB, vertC) * nt] |
| nt | The number of triangles. |
| norms | The normal vector of each triangle. [(x, y, z) * nt] |