# Running Zone Graph without State Tree 

**URL:** <https://forums.unrealengine.com/t/running-zone-graph-without-state-tree/2685529>\
**Category:** C++\
**Tags:** ai-navigation, unreal-engine, question, CPP\
**Created:** [December 16, 2025, 8:10pm UTC](https://forums.unrealengine.com/t/running-zone-graph-without-state-tree/2685529 "2025-12-16T20:10:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShivalM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShivalM](https://forums.unrealengine.com/u/ShivalM)\
**Post date:** [December 16, 2025, 8:10pm UTC](https://forums.unrealengine.com/t/running-zone-graph-without-state-tree/2685529/1 "2025-12-16T20:10:59Z")

</div>

Hello, I’ve been looking into running zone graph calls without using state tree. Is there documentation for doing so out there? I haven’t found a great deal. From what I’ve gathered, I’m able to do most nav items, except I have yet to figure out `DistanceAlongLane`calculations.

I can force stop along paths, replan, send them to a new destination all in C++ & processors, etc. But I’m missing where this is DistanceAlongLane is calculated, resulting in them ping ponging on the same traversal zone paths instead of ‘continuing forward’.

Thanks

---

<div class="post-metadata">

**Author:** ![ShivalM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShivalM](https://forums.unrealengine.com/u/ShivalM)\
**Post date:** [December 16, 2025, 9:18pm UTC](https://forums.unrealengine.com/t/running-zone-graph-without-state-tree/2685529/2 "2025-12-16T21:18:19Z")

</div>

Looks like its getting overridden here:

const FMassZoneGraphPathPoint& CurrPoint = ShortPath.Points[PointIndex];  
const FMassZoneGraphPathPoint& NextPoint = ShortPath.Points[PointIndex + 1];  
const float T = (ShortPath.ProgressDistance - CurrPoint.Distance.Get()) / (NextPoint.Distance.Get() - CurrPoint.Distance.Get());

LaneLocation.DistanceAlongLane = FMath::Min(FMath::Lerp(CurrPoint.DistanceAlongLane.Get(), NextPoint.DistanceAlongLane.Get(), T), LaneLocation.LaneLength);

That LaneLocation.LaneLength is 0, debugging further.

---

<div class="post-metadata">

**Author:** ![ShivalM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShivalM](https://forums.unrealengine.com/u/ShivalM)\
**Post date:** [December 16, 2025, 9:27pm UTC](https://forums.unrealengine.com/t/running-zone-graph-without-state-tree/2685529/3 "2025-12-16T21:27:24Z")

</div>

And in this case I was the error, I had LaneLength set to 0 on another processor, overriding the value that was already set.

Nothing to see here :).
