mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-06-20 15:39:25 +02:00
Revert "feat(Core/Travel): Enable PathGenerator slope check on chained probe"
This reverts commit c8ca028ebef33c43fdae16f3ee3830396f3fbfd6.
This commit is contained in:
parent
c8ca028ebe
commit
91b217c962
@ -730,14 +730,6 @@ std::vector<WorldPosition> WorldPosition::getPathStepFrom(WorldPosition startPos
|
|||||||
// the previous step's endpoint, giving the 40-attempt walker
|
// the previous step's endpoint, giving the 40-attempt walker
|
||||||
// its intended multi-tile reach.
|
// its intended multi-tile reach.
|
||||||
PathGenerator path(pathUnit);
|
PathGenerator path(pathUnit);
|
||||||
// Stricter walkability validation than navmesh extract alone: per-
|
|
||||||
// segment runtime check against the unit's collision-height climb
|
|
||||||
// formula. Detour may return paths up steep slopes that the
|
|
||||||
// walkable-slope-angle filter at extract time accepted but that the
|
|
||||||
// unit physically can't walk; SetSlopeCheck rejects those at
|
|
||||||
// pathfind time (returns DT_SLOPE_TOO_STEEP / shorter path).
|
|
||||||
// Engine uses this in FleeingMovementGenerator only.
|
|
||||||
path.SetSlopeCheck(true);
|
|
||||||
path.CalculatePath(startPos.GetPositionX(), startPos.GetPositionY(), startPos.GetPositionZ(),
|
path.CalculatePath(startPos.GetPositionX(), startPos.GetPositionY(), startPos.GetPositionZ(),
|
||||||
GetPositionX(), GetPositionY(), GetPositionZ(), false);
|
GetPositionX(), GetPositionY(), GetPositionZ(), false);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user