Get position of the next Node (AILerp, Point Graph)

Hello,

I am trying to get the position of the current active node along a path. Not the end node, but the next node the player is currently moving towards.

steerTarget seems to be the right variable. But I don’t know how to write it in C# to get the position.

print(AILerp.IAstarAI.steeringTarget);

Any ideas anybody?

Hi

The next node is not exposed from the AILerp script, I’m afraid.
You can the node at the steering target using AstarPath.active.GetNearest I suppose. But it will not be perfectly accurate.