This commit is contained in:
aozhiwei 2020-08-17 20:22:04 +08:00
parent 9240c61c92
commit 999505efda

View File

@ -235,24 +235,38 @@ class InputGeom
struct BuilderParams
{
const float kCellSize = 64;
const float kCellHeight = 64;
const float kAgentMaxSlope = 90;
const float kAgentHeight = 1;
const float kAgentMaxClimb = 1;
const float kAgentRadius = 40;
const float kCellSize = 1; //体素大小
const float kCellHeight = 1; //体素高度
const float kAgentMaxSlope = 90; //角色可走的最大坡度
const float kAgentHeight = 1; //角色高
const float kAgentMaxClimb = 1; //角色能爬的最大高度
const float kAgentRadius = 40; //角色半径
const float kEdgeMaxLen = 6;
const float kEdgeMaxError = 6;
const float kEdgeMaxLen = 6; //简化列表中相邻两点间的距离
const float kEdgeMaxError = 6; //从简化边到实边的最大距离
const float kRegionMinSize = 6;
const float kRegionMinSize = 6; //最小区域的大小, 网格面积小于该值的地方,将不生成导航网格
/*
: >= 0
,,.
,.,.
,,..
[,]
[,,]
*/
const float kRegionMergeSize = 6;
const int kVertsPerPoly = 1;
/*
: >= 3
,.
6,,*/
const int kVertsPerPoly = 6;
const int kTileSize = 48;
const int kTileSize = 64; //单个瓦片大小
const float kDetailSampleDist = 1;
const float kDetailSampleDist = 6;
const float kDetailSampleMaxError = 1;
const int kMaxTiles = 0;
@ -274,4 +288,3 @@ struct BuilderParams
rcContext* ctx = nullptr;
dtTileCache* tile_cache = nullptr;
};