Hi, I’m still learning so be patient with me please , taking as reference the grid graph example scene of your project I would like to learn how to change two things.
The first one is how the AI moves, I would like it to move up-down and left-right, 4 directions only, without rotation or anything.
The second one is how I change the frequency of re-path because in my game I will have a small map with a lot of IA characters appearing constantly and I want them to reach a desired position without going throught their brothers, they can’t overlap themselves.
Thanks in advance
Hi
First use the setting Connections: Four.
Secondly, to get the movement you want you will have to write a custom movement script, the included ones are mainly for smooth movement. Check out the Get Started tutorial.
To avoid overlaps you can either use the unity physics engine, this might look odd though since units will just slam into each other, no avoidance whatsoever. Or you can use some kind of local avoidance. The pro version of the A* Pathfinding Project includes local avoidance, but there are also free alternatives like UnitySteer among others (though that is force based and might not be the best for your situation).