- Home /
Arongranbergs Astar DynamicGridObstacle deletes nodes from gridgraph
Hello.
I'm using astar pathfinding project of arongranberg. I have created big gridgraph and I have script that will instantiate GameObjects with DynamicGridObstacle components. Astar Path masks them by layer. When GameObjects starts to move, they will leave "Trails", making nodes where this object was unavailable.
However, if I place GameObject via editor with DynamicGridObstacle component, it works fine. It leaves no "trails" and masks only place where GameObject stands.
Question: How to make instantiated GameoObjects with DynamicGridObstacle component leave no "Trails" on gridgraph while moving.
Are you the user Daniq who asked this question on the dedicated APP forums ?
Yes it is me. I'am waiting about 3 weeks for this answer. Did you encountered that kind of problem too?
I never used DynamicGridObstacles, I only ever used GraphUpdateObjects to manually update the graph when objects move.
I have created GameObject with GraphUpdateScene component and placed 4 points in my scene. When I start my scene it updates nothing, do I need to call it on my script?
Yes, I think it's
GetComponent<GraphUpdateScene>().Apply;
or something like that. Check the APP scripting reference to be sure. You also need to set up the polygon that deter$$anonymous$$es which nodes are to be affeted, of course.