Navigation
API > API/Runtime > API/Runtime/Navmesh
Description
Sets the area id of all triangles with a slope greater than or equal to the specified value to RC_NULL_AREA.
Only sets the aread id's for the unwalkable triangles. Does not alter the area id's for walkable triangles.
See the rcConfig documentation for more information on the configuration parameters.
| Name | rcClearUnwalkableTriangles |
| 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 rcClearUnwalkableTriangles
(
rcContext * ctx,
const rcReal walkableSlopeAngle,
const rcReal * verts,
int nv,
const int * tris,
int nt,
unsigned char * areas
)
Parameters
| Name | Remarks |
|---|---|
| ctx | The build context to use during the operation. |
| walkableSlopeAngle | The maximum slope that is considered walkable. [Limits: 0 <= value < 90] [Units: Degrees] |
| 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] |
See Also
-
rcClearUnwalkableTriangles
-
rcRasterizeTriangles