Hello!

I wanted to find a point that is x distance *along* the path from the current position. Is there a way to do this? Been struggling with this one for a while, any help would be greatly appreciated!

Hello!

I wanted to find a point that is x distance *along* the path from the current position. Is there a way to do this? Been struggling with this one for a while, any help would be greatly appreciated!

In human terms: Im going to the store, along the way is a school, what is the distance between my house and the school while going to the store? The distance between me and the school at all times?

Perhaps explaining the case would help provide an answer.

Hi

I think you should be able to do something like this:

```
var path = new List<Vector3>();
ai.GetRemainingPath(path, out bool stale);
var interpolator = new PathInterpolator();
interpolator.SetPath(path);
var point = interpolator.AtDistanceFromStart(someDistance).position;
```

1 Like