- A* version: [5.3.3]
- Unity version: [6000.0.30f1]
If I use FakePath for the first time
AIPath is not moving.
But If I use Path, AIPath is Moving.
And If I use FakePath, Is Working Well… What’s the problem?
if(testMove)
{
testMove=false;
var path = seeker.StartPath(transform.position, target.position, OnPathComplete);
path.BlockUntilCalculated();
}
void OnPathComplete(Path path)
{
// The path is now calculated!
if (path.error)
{
Debug.LogError("Path failed: " + path.errorLog);
return;
}
// Cast the path to the path type we were using
var abPath = path as ABPath;
ABPath makePath = ABPath.FakePath(abPath.vectorPath);
aiPath.SetPath(makePath);
}