docs(Core/Travel): Note why setAreaCost(12,13) is not ported (mmap dataset diverges)

This commit is contained in:
bash 2026-05-31 18:19:02 +02:00
parent 59f82465e1
commit 2913db8964

View File

@ -723,6 +723,13 @@ std::vector<WorldPosition> WorldPosition::getPathStepFrom(WorldPosition startPos
// fire — apply the same bot cost biases here so generated paths // fire — apply the same bot cost biases here so generated paths
// match what bots prefer at runtime (STEEP/water are reachable // match what bots prefer at runtime (STEEP/water are reachable
// but not preferred). // but not preferred).
//
// Reference also applies setAreaCost(12, 5) + setAreaCost(13, 20)
// here. Not ported: reference and AC use different mmap generators
// and Detour area-id assignments diverge — raw IDs 12/13 are
// unlikely to match any polys on AC's navmesh and could no-op or
// bias something unintended. If we ever regenerate mmaps to match
// the reference dataset, revisit.
path.SetNavTerrainCost(NAV_GROUND_STEEP, 5.0f); path.SetNavTerrainCost(NAV_GROUND_STEEP, 5.0f);
path.SetNavTerrainCost(NAV_WATER, 10.0f); path.SetNavTerrainCost(NAV_WATER, 10.0f);
auto result = getPathStepFrom(startPos, path); auto result = getPathStepFrom(startPos, path);