A* Pathfinding Project

Why is my agent going through unwalkable nodes?


#1

Hi,

I have a hexagonal grid graph, everything seems to be working really good with this asset (so far) until I started testing the agents trying to reach a target that is no longer reachable.

gif

In the above gif you can see that the agent starts to walk towards the target when it gets close I’m blocking it with Dynamic Obstacle Components, however, when the path is no longer reachable, the agent decides to walk through the obstacles? Any ideas why?

Below, I’m attaching additional information in regards to my Pathfinding settings, (and links to images due to new users are restricted to upload only 2 images)


AStarPath
DynamicGridObstacle

Any help will be much appreciated, thank you
Patryk.


#2

Also why do I not see the gizmos being drawn? (as opposed to the tutorial scenes)


#3

Hi

Could you post what your Seeker -> Start End Modifier settings are?

The gizmos for the path are drawn if the Seeker has gizmos enabled in the scene view’s Gizmo dropdown.


#4

Hi Aron,

Yes I will be able to at the beginning of next week. I currently have no access to PC.

I hope this thread will not be closed automatically.

Thanks,
Patryk.


#5

Here is my Seeker component. @aron_granberg


#6

Hmm. I cannot see anything wrong there.
Does the agent enter that obstale if it starts from further away?


#7

Hi @aron_granberg thanks for getting back to me.

This setting seems to have fixed the issue (I think)

1

Would you be able to elaborate why this works please?

Also I can’t find any information on the following;
2

Could you please share an overview of each and how they could be used in different scenarios please?

Thanks,
Patrick.


#8

Hi

Have you looked at the documentation for that enum?
https://arongranberg.com/astar/docs/startendmodifier.html#Exactness


#9

Oh I have not seen this.

Thank you :slight_smile: