If you have any questions please post them as a comment or mail me at aron[dot]g[at]me[dot]com, but make sure you have read the FAQ first
If you have any questions please post them as a comment or mail me at aron[dot]g[at]me[dot]com, but make sure you have read the FAQ first
i want aicar in iphone side
Admin: This isn’t really a relevant comment since AICar doesn’t have anything to do with the A* Project.
Would love to see the doc’s in pdf or similar downloadable format (i steal all tutorials / reference mats while at work you see… no net at home, yes i live in the dark ages… with Unity…)
Even if it were just Getting Started…
Can’t you just save the html page as a file?
I’m having a problem trying to find more documentation on placing the green grid (walkable area). I notice in the House level you have custom shaped walkable green grids in only one A* Grid (white cube). How do I do this? I have a level that I need to place walkable green grids through out the hallways and am not sure how to do this. Thanks!
The grid I think you mean is created by using the Raycast mode as Y position and setting the floor as the only thing the Raycast will hit (i.e changing the layer mask), if the raycast doesn’t hit anything it will mark the node as unwalkable and thus it will create a “custom shaped grid”.
You can place the hallways floor colliders in a special layer, let’s say “Floor”, then you change the Y position mode to Raycast, and change the layer mask to only contain the “Floor” layer (the O at the left side of the name indicates that the layer is selected).
You can also place the walls in a certain layer, and change the Physics settings for the grid to check for that layer so the nodes wont be walkable when they are inside walls.
Hello, I am loving this thing. Has saved me so much time and effort. My questions is I was wondering if there was a way to increase the number of nodes in an area? because of the size of the level I want to make there are not enough nodes to provide an intricate grid (like for alleyways, around furniture in a house ect..) Is there a way to increase the number of nodes in the scene? or will I be forced to just increase the size of everything else? Also, have you written the scripts for this in .js? I know a decent amount of .js but nothing else. I if can get them in .js I will be able to continue with my project. I am sorry if you have and I have just failed to find them. Thank you for your time.
Hi Mike
You can use the Node Size variable in the grid settings, it defines the width & depth of one node in world units.
Take a look at this page : http://www.arongranberg.com/unity/a-pathfinding/docs/othercode/
It explains how to use the system with js.
I have written the scripts only in C# for a couple of reasons, for example : js doesn’t support 2D arrays and code in C# will often run faster because of the forced static typing.
@Aron
Awesome that worked! Thank you!!