Grid Graph not detecting a long wall

HomeForumsA* Pathfinding ProjectBeginner QuestionsGrid Graph not detecting a long wall

This topic has 2 voices, contains 3 replies, and was last updated by  roto23 94 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
Author Posts
Author Posts
February 13, 2012 at 18:33 #1515

roto23

My grid graph is showing pathing through a long wall. This wall is in the obstacle layer. It is a thin wall, but not outrageously thin. Any suggestions? It is thinner then my node size. Would lowering the collision height and doing a rescan help? I am thinking rays may be shooting over top of it.
How is collision detected anyway?

Side note: I am making more and more progress with this thing, but still a few unusual behaviors exist, but I’m not ready to post about them yet ’cause it could be my lack of experience with this A* tool.

February 13, 2012 at 18:36 #1516

roto23

I forgot to add, a duplicate of this wall, just rotated 90 degrees does get detected and no pathing goes through it. So this wall behaves properly, its just the other wall.

February 13, 2012 at 21:11 #1520

Aron Granberg

Try increasing the radius of the collision detection in the collision settings in the grid graph settings. It does actually not cover the whole node, only most of it. And make sure it is set to Capsule or Sphere and not Ray since rays will only check the center of the nodes.
Collision testing is done with the Unity Physics classes:
http://unity3d.com/support/documentation/ScriptReference/Physics.html

Red cubes should show up if an object makes areas unwalkable in the graph (though make sure you have Show Unwalkable Nodes toggled in A* Inspector –> Settings –> Debug)

February 14, 2012 at 16:27 #1527

roto23

Thanks for the reply. I decided to just double the width if the wall. It detected .

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Grid Graph not detecting a long wall
Your information:






<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>