added DtCrowdConst.MAX_PATH_RESULT = 256

This commit is contained in:
ikpil 2024-02-23 00:52:23 +09:00
parent 5b6fddcedc
commit 7836b78bb4
2 changed files with 2 additions and 1 deletions

View File

@ -168,7 +168,7 @@ namespace DotRecast.Detour.Crowd
}
// Allocate temp buffer for merging paths.
_maxPathResult = 256;
_maxPathResult = DtCrowdConst.MAX_PATH_RESULT;
_pathQ = new DtPathQueue(config);
_agents = new List<DtCrowdAgent>();

View File

@ -30,5 +30,6 @@
public const int MAX_ITERS_PER_UPDATE = 100;
public const int MAX_PATHQUEUE_NODES = 4096;
public const int MAX_COMMON_NODES = 512;
public const int MAX_PATH_RESULT = 256;
}
}