OK,
So I recently downloaded A* Pathfinding. I was just trying to see if this prebuilt system is something I can use for my game, or if I’m going to need write my own. I know if I will be able to use it I will end up buying the pro version.
My problem I’m running into is this:
I have lots of places like that all over the terrain. I’ve been trying to figure out how to solve this short of going over every inch of my terrain and modifying it, but I have not been able to figure it out.
The next problem I’ve run into is this:
The mine bot just gets confused on where to go. Despite that you can see the path it’s trying to take, it will just get stuck in a corner like that. Again I’m not really sure what the cause of this is or how to fix it.
As for what settings you would like to see, just let me know.
Hi
Make sure you set the Max Climp field correctly. The unwalkable nodes were probably created because the slope was too large there, but if two adjacent nodes were created on a flat area but at different heights, they would still be able to create a connection.
I think the bot might get stuck because of the Max Slope property on the Character Controller, try to increase it.
The Max Climb was the problem for the first problem. I must have mis understood what I read in the docs. Setting it to .3 fix the that issue for me.
Though as for the bot being stuck… The unwalkable slope right there has a slope of 55, the bot has a slope of 45. When I generated the grid I set the grids Max Slop to 35. I mean i could go through all my terrain and convert those edges on the ramp to a pure 90degree slope.
Though I when you actually watch the bot it’s almost like it’s trying to just cut through the unwalkable area and not go around. This is further proven by the fact when i do increase the bots slop to something higher then ramps slope. It cuts right through the unwalkable area. Though while righting this I did figure it out. I was using the MineBot AI script from the Terrain Example. I had to adjust the “Pick Next Waypoint” setting per this post: http://www.arongranberg.com/forums/topic/character-hits-things-and-wont-reach-target/
1 Like