Hi!
So I’ve got a 2D scene in Unity 5.2. Using Astar 3.7.4, I’m trying to add terrain types to a map. Different terrain types should have different penalties, so I’m using a GraphUpdateScene object to modify the penalties. I followed the documentation about how to set it up, but somehow I’m still doing something wrong - it doesn’t seem to update the graph at all. Here’s a gif of my setup and what I do:
https://www.dropbox.com/s/ae2lqu6hvz8dkir/updatescenegraph_penalties.gif?dl=0
It doesn’t seem to update the penalties of the graph. When I play and move around on the map, my seekers return paths going right through the high-penalty area. I tried with different penalties up to the max of 2147483647
I also have a base penalty of 500 on the whole grid.
I’m out of ideas. Can you tell me what I’m doing wrong? Or something that I could try to do to fix it?
Thanks in advance!
Jinn
PS: seems like I can’t draw new points using 2d colliders, so I have to use a temporary 3d collider to do that. It’s a workaround, but it works.