Navigation
API > API/Runtime > API/Runtime/Navmesh
Description
Replaces all RC_WALKABLE_AREA triangles with a area id.
Used to apply an area id to all walkable triangles. Only replaces RC_WALKABLE_AREA, leaving other area ids unchanged.
| Name | rcApplyAreaToTriangles |
| Type | function |
| Header File | /Engine/Source/Runtime/Navmesh/Public/Recast/Recast.h |
| Include Path | #include "Recast/Recast.h" |
| Source | /Engine/Source/Runtime/Navmesh/Private/Recast/Recast.cpp |
void rcApplyAreaToTriangles
(
unsigned char * areas,
const int nt,
const unsigned char areaId
)
Parameters
| Name | Remarks |
|---|---|
| areas | The triangle area ids. [Length: >= nt] |
| nt | The number of triangles. |
| areaId | The area id to assign instead of RC_WALKABLE_AREA. |