Is there any way to get the lenght of the created path. In my case, I tried to create a function that solves which tree is the closest one by pathing to it and by getting an array of certain SceneObjects and comparing them which has the shortest path. AND I know that pathing to a tree will result in weird behavior because you can’t get to the exact coordinate where the tree is, I already have a solution for that.
I would need something like this:
Using this function you can get to a situation where the player goes around a wall if there is a tree closer on a drawn line.
SceneObject TargetTree = SceneObjects.getNearest("Tree");