Support Forum

Setting Path outside raycast

Trying to use the tutorial as a basis for raycast. My AI is setting destinations outside of the raycast and becomes frozen never reaching it.
Using Unity built-in navmesh I do not get this behavior, only with A*.

I am using A* and BehaviorTrees wander task [A* version]. And I cannot figure out a solution.
here is a screenshot of the debug of the destinations they are setting, they are all on the correct Y plane just outside of the walkable areas.


That depends on how the behavior tree checks for task completion.
This package has a reachedDestination property which checks if the agent has reached its destination (blue circle). In these cases they clearly have not. It also has a reachedEndOfPath property which is true if the agent has reached the end of the path they are currently following (which in this case they have).