This commit is contained in:
ikpil 2023-09-04 23:36:29 +09:00
parent a331b3e861
commit 5836fedc7b
1 changed files with 4 additions and 6 deletions

View File

@ -62,19 +62,17 @@ namespace DotRecast.Detour.Dynamic.Io
tiles.Add(tile); tiles.Add(tile);
} }
public RcConfig GetConfig(VoxelTile tile, RcPartition partitionType, int maxPolyVerts, int regionMergeSize, public RcConfig GetConfig(VoxelTile tile, RcAreaModification walkbableAreaMod, bool buildMeshDetail)
bool filterLowHangingObstacles, bool filterLedgeSpans, bool filterWalkableLowHeightSpans,
RcAreaModification walkbableAreaMod, bool buildMeshDetail, float detailSampleDist, float detailSampleMaxError)
{ {
return new RcConfig(useTiles, tileSizeX, tileSizeZ, return new RcConfig(useTiles, tileSizeX, tileSizeZ,
tile.borderSize, tile.borderSize,
partitionType, RcPartitionType.OfValue(partition),
cellSize, tile.cellHeight, cellSize, tile.cellHeight,
walkableSlopeAngle, walkableHeight, walkableRadius, walkableClimb, walkableSlopeAngle, walkableHeight, walkableRadius, walkableClimb,
minRegionArea, regionMergeArea, minRegionArea, regionMergeArea,
maxEdgeLen, maxSimplificationError, maxEdgeLen, maxSimplificationError,
maxPolyVerts, vertsPerPoly,
detailSampleDist, detailSampleMaxError, detailSampleDistance, detailSampleMaxError,
filterLowHangingObstacles, filterLedgeSpans, filterWalkableLowHeightSpans, filterLowHangingObstacles, filterLedgeSpans, filterWalkableLowHeightSpans,
walkbableAreaMod, buildMeshDetail); walkbableAreaMod, buildMeshDetail);
} }