Hello how to force path find ?
I would like to check if there are any available paths before the AI receives the task.
public bool CanReachTarget(Vector3 target)
{
var checkPath = CreatePath(target);
AstarPath.StartPath(checkPath, true);
return checkPath.IsDone() && !checkPath.error; // Always false, because the path is calculated for the next frame.
}