Fix walkableClimb, maxWalkableAngle maxAngle height.

This commit is contained in:
sucofog 2017-11-18 06:16:53 +01:00
parent 1b9b901817
commit 32fe67d32c
3 changed files with 3 additions and 3 deletions

View file

@ -573,7 +573,7 @@ namespace MMAP
config.walkableHeight = m_bigBaseUnit ? 3 : 6; config.walkableHeight = m_bigBaseUnit ? 3 : 6;
// a value >= 3|6 allows npcs to walk over some fences // a value >= 3|6 allows npcs to walk over some fences
// a value >= 4|8 allows npcs to walk over all fences // a value >= 4|8 allows npcs to walk over all fences
config.walkableClimb = m_bigBaseUnit ? 2 : 4; config.walkableClimb = m_bigBaseUnit ? 4 : 8;
config.minRegionArea = rcSqr(60); config.minRegionArea = rcSqr(60);
config.mergeRegionArea = rcSqr(50); config.mergeRegionArea = rcSqr(50);
config.maxSimplificationError = 1.8f; // eliminates most jagged edges (tiny polygons) config.maxSimplificationError = 1.8f; // eliminates most jagged edges (tiny polygons)

View file

@ -68,7 +68,7 @@ namespace MMAP
class MapBuilder class MapBuilder
{ {
public: public:
MapBuilder(float maxWalkableAngle = 55.f, MapBuilder(float maxWalkableAngle = 70.f,
bool skipLiquid = false, bool skipLiquid = false,
bool skipContinents = false, bool skipContinents = false,
bool skipJunkMaps = true, bool skipJunkMaps = true,

View file

@ -231,7 +231,7 @@ int finish(const char* message, int returnValue)
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
int threads = 3, mapnum = -1; int threads = 3, mapnum = -1;
float maxAngle = 55.0f; float maxAngle = 70.0f;
int tileX = -1, tileY = -1; int tileX = -1, tileY = -1;
bool skipLiquid = false, bool skipLiquid = false,
skipContinents = false, skipContinents = false,