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 rcMarkWalkableTrianglesCos
(
rcContext * ctx,
const rcReal walkableSlopeCos,
const rcReal * verts,
int nv,
const int * tris,
int nt,
unsigned char * areas
)
Remarks
Sets the area id of all triangles with a slope below the specified value to RC_WALKABLE_AREA.
Parameters
| Name | Description |
|---|---|
| ctx | The build context to use during the operation. |
| walkableSlopeCos | The cosine of maximum slope that is considered walkable. [Limits: 0 <= value < 1] |
| verts | The vertices. [(x, y, z) * nv] |
| nv | The number of vertices. |
| tris | The triangle vertex indices. [(vertA, vertB, vertC) * nt] |
| nt | The number of triangles. |
| areas | The triangle area ids. [Length: >= nt] |