Support Forum

Close range use Pathfinding Whether or not cost-effective?

First of all, I’m sorry for my poor English
I currently have two ways to move 1 .use Translate function 2.use Pathfinding
Sometimes when the travel distance is very short ( Smaller than the size of a single NODE)
use Pathfinding is cost-effective?

Hi

When using pathfinding it still has to go through a bunch of infrastructure, putting the path in a queue, finding the closest node etc. So it will most definitely be slower than just using Transform.Translate directly. However, it will still be very fast, so I would use pathfinding unless it shows up in the profiler that it becomes a performance problem.

[Many thanks](javascript::wink: