Changed `MAX_STEER_POINTS` from class constant to local.

This commit is contained in:
ikpil 2024-05-22 23:48:52 +09:00
parent c7f03d00ff
commit 5b6905bd8f
2 changed files with 4 additions and 3 deletions

View File

@ -18,7 +18,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Changed `DtTileCacheBuilder` to a static class
- Changed `DtTileCacheLayerHeaderReader` to a static class
- Changed `Dictionary<int, List<DtMeshTile>>` to `DtMeshTile[]` to optimize memory usage
- Changed `MAX_STEER_POINTS` from class constant to local.
### Removed
- Nothing

View File

@ -28,13 +28,13 @@ namespace DotRecast.Detour
public static class DtPathUtils
{
private const int MAX_STEER_POINTS = 3;
public static bool GetSteerTarget(DtNavMeshQuery navQuery, RcVec3f startPos, RcVec3f endPos,
float minTargetDist,
List<long> path, int pathSize,
out RcVec3f steerPos, out int steerPosFlag, out long steerPosRef)
{
const int MAX_STEER_POINTS = 3;
steerPos = RcVec3f.Zero;
steerPosFlag = 0;
steerPosRef = 0;