1
This commit is contained in:
parent
f53ce64d02
commit
d129fb5bb3
@ -210,14 +210,15 @@ int NavMeshBuilder::RasterizeTileLayers(BuilderParams& builder_params,
|
|||||||
// Once all geometry is rasterized, we do initial pass of filtering to
|
// Once all geometry is rasterized, we do initial pass of filtering to
|
||||||
// remove unwanted overhangs caused by the conservative rasterization
|
// remove unwanted overhangs caused by the conservative rasterization
|
||||||
// as well as filter spans where the character cannot possibly stand.
|
// as well as filter spans where the character cannot possibly stand.
|
||||||
#if 0
|
if (builder_params.kFilterLowHangingObstacles) {
|
||||||
if (m_filterLowHangingObstacles)
|
rcFilterLowHangingWalkableObstacles(ctx, tcfg.walkableClimb, *rc.solid);
|
||||||
rcFilterLowHangingWalkableObstacles(m_ctx, tcfg.walkableClimb, *rc.solid);
|
}
|
||||||
if (m_filterLedgeSpans)
|
if (builder_params.kFilterLedgeSpans) {
|
||||||
rcFilterLedgeSpans(m_ctx, tcfg.walkableHeight, tcfg.walkableClimb, *rc.solid);
|
rcFilterLedgeSpans(ctx, tcfg.walkableHeight, tcfg.walkableClimb, *rc.solid);
|
||||||
if (m_filterWalkableLowHeightSpans)
|
}
|
||||||
rcFilterWalkableLowHeightSpans(m_ctx, tcfg.walkableHeight, *rc.solid);
|
if (builder_params.kFilterWalkableLowHeightSpans) {
|
||||||
#endif
|
rcFilterWalkableLowHeightSpans(ctx, tcfg.walkableHeight, *rc.solid);
|
||||||
|
}
|
||||||
|
|
||||||
rc.chf = rcAllocCompactHeightfield();
|
rc.chf = rcAllocCompactHeightfield();
|
||||||
if (!rc.chf) {
|
if (!rc.chf) {
|
||||||
|
@ -290,6 +290,10 @@ struct BuilderParams
|
|||||||
const int kMaxTiles = 0;
|
const int kMaxTiles = 0;
|
||||||
const int kMaxPolysPerTile = 0;
|
const int kMaxPolysPerTile = 0;
|
||||||
|
|
||||||
|
const bool kFilterLowHangingObstacles = false;
|
||||||
|
const bool kFilterLedgeSpans = false;
|
||||||
|
const bool kFilterWalkableLowHeightSpans = false;
|
||||||
|
|
||||||
int grid_width = 0;
|
int grid_width = 0;
|
||||||
int grid_height = 0;
|
int grid_height = 0;
|
||||||
int tile_size = 0;
|
int tile_size = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user