Hi there,
I am having trouble with my characters trying to make a path to nodes straight above/below them whilst using the layered grid graph. They aren’t even supposed to be going up the the higher level and sometimes are going up to the high level to get back down to the lower level (through the floor).
I have my max slope set to about 65 and have played around with the max climb and the offset but it is still happening.
anyone had this problem?
thanks for your help
here is an example. The character is taking a much longer path than needed… the target is on the ground level.
Hi
Could you show me how the generated graph looks?
I can see something white in the picture, but I am not sure if it is the graph. If it is, it looks like it is only generated on the top floor and not the bottom floor (do you have a collider there? etc.)
Hi Aron
here is a picture with the graph shown
if it helps, I am using the Simple Smooth modifier and the Funnel modifier, however I have tried removing both of them and it is still happening, I have also tried rebuilding the structure so it has a wider path but it is still happening.
Hi
Hm… try setting Seeker -> Start End Modifier -> End Point = ClosestOnNode.
Hey
Unfortunately I have tried that, and it is still happening.
Interesting… The grid does seem to be connected all the way through. And it should look for the closest point it can reach, which would mean the lower floor… I really have no idea on this one.
Perhaps you could send me a small example scene which shows the problem?
ok cool, ill try and put something together as it is quite a large project.
Also so you know, the Building is being placed and the graphs bounds updated during runtime if that could be a possible cause, however it does look as though the graph has updated properly.
on a separate note, when I try and Generate the cache to store my graph, Unity crashes. although to be honest I have not looked into save/loading properly at the moment.
thanks for your help.
If you change the max clime and max slope~ How does if effect this?? That might shed some light on whats going on
Also make sure your height testing in not hitting the top floor from the bottom floor.
Edit: Can you take a screenshot of the A*pathfinding grid setting setting?? it would help me in trying to reproduce it
Sure, here it is…
I have found that if I alter the max climb settings the grid doesn’t build over the slope area properly.
I am not sure about the height testing, the mask is set to “Ground”(ground floor) and “Upstairs”(…), however on the object both levels layers are currently set to ground as I was also getting the problem when the upper level layer was set to upstairs
thanks for your help!
Sorry to say, but I have no fucking idea~ I think you need to gets someones script that works and go backwards from there ;/
haha yup, have been looking through the example project but not sure what is going on.