About pathfinder, I would like to know if it’s possible to get the value of the total cost of a path ?
I mean the sum of the costs of every obstacles that my object go through.
I’ve seen that it’s possible to get the distance of the path using the Waypoints count (NodeCount()) function, but it’s not exactly what I look for.
Not sure if is this you want.
You can always set a variable named collision_path_counter so every time the Object collides with an obstacle increment the variable +1
you can add the cost of the obstacle to a variable. its your decision when to add it, like on reaching a node, or once on collusion.
Yes, thank you for the ideas! I’ll do something like that.
Since the computer probably get the sum of the costs when it calculates the shortest path, I thought there could be a function that gives us directly the sum, but that’s alright ^^