Module |
|
Header |
/Engine/Source/Runtime/Navmesh/Public/Recast/Recast.h |
Include |
#include "Recast/Recast.h" |
Source |
/Engine/Source/Runtime/Navmesh/Private/Recast/RecastRasterization.cpp |
void rcRasterizeTriangle
(
rcContext * ctx,
const float * v0,
const float * v1,
const float * v2,
const unsigned char area,
rcHeightfield & solid,
const int flagMergeThr,
const int rasterizationFlags,
const int * rasterizationMasks
)
Rasterizes a triangle into the specified heightfield.
No spans will be added if the triangle does not overlap the heightfield grid.
Parameter |
Description |
---|---|
ctx |
The build context to use during the operation. |
v0 |
Triangle vertex 0 [(x, y, z)] |
v1 |
Triangle vertex 1 [(x, y, z)] |
v2 |
Triangle vertex 2 [(x, y, z)] |
area |
The area id of the triangle. [Limit: <= #RC_WALKABLE_AREA] |
solid |
An initialized heightfield. |
flagMergeThr |
The distance where the walkable flag is favored over the non-walkable flag. [Limit: >= 0] [Units: vx] |
rtzFlags |
Flags to change the rasterization behavior //UE4 |
rtzMasks |
Mask for the rasterization flags [Size: hf.w*hf.h] //UE4 |