This commit is contained in:
aozhiwei 2020-08-13 20:51:00 +08:00
parent 3c4be5d3b8
commit db1d19a46e

View File

@ -19,8 +19,6 @@
#include "entity.h"
#include "metamgr.h"
static const float kCellHeight = 1;
static const float kAgentMaxSlope = 90;
static const float kAgentHeight = 1;
static const float kAgentMaxClimb = 1;
@ -455,7 +453,7 @@ void NavMeshBuilder::InitRcConfig(BuilderParams& builder_params)
cfg.width = cfg.tileSize + cfg.borderSize*2;
cfg.height = cfg.tileSize + cfg.borderSize*2;
cfg.detailSampleDist = kDetailSampleDist < 0.9f ? 0 : builder_params.kCellSize * kDetailSampleDist;
cfg.detailSampleMaxError = kCellHeight * kDetailSampleMaxError;
cfg.detailSampleMaxError = builder_params.kCellHeight * kDetailSampleMaxError;
rcVcopy(cfg.bmin, builder_params.bmin);
rcVcopy(cfg.bmax, builder_params.bmax);
}