Hi Justin,
I recently upgraded Behavior Designer, Behavior Designer Movement Pack, and the Behavior Designer Movement Pack A* Pathfinding Project Pro integration and the patrols in my game stopped working since IAstarAIMovement got reverted.
The current package has:
C#:
protected override bool HasArrived()
{
// The path hasn't been computed yet if the path is pending.
float remainingDistance;
if (agent.pathPending || agent.reachedEndOfPath) {
remainingDistance = float.PositiveInfinity;
} else {
remainingDistance = agent.remainingDistance;
}
return remainingDistance <= arriveDistance.Value;
}
which does not work (patrols just stand still), at least for me.
I had to revert back to the change I made awhile back in order for it to work again:
Code:
protected override bool HasArrived()
{
return agent.reachedDestination || agent.remainingDistance < arriveDistance.Value;
}
I was hoping the package could get updated with this fix so I do not need to remember to manually update it next time I update Behavior Designer.