1
This commit is contained in:
parent
3c4be5d3b8
commit
db1d19a46e
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user