Is remainingDistance the exact distance between the agent and the destination, or is it the “length” of the path?
From the docs
The distance between the agent’s position and the destination on the current path
so it’s on the path, so it’s the former.