Dynamic Grid Obstacle-script colliding with itself

Hi,

Im trying to walk around with a gameobject while having its “grid obstacle” update with it using the “Dynamic grid obstacle” script. When it has calculated a path and tries to walk towards it and it seems like it collides with its own grid-obstacle and just turns, spins and recalculates the path.
If I turn off the Dynamic grid obstacle script, the movement is as expected.

Any tips?

Regards
Seb

Hi

Yeah, if you use a grid obstacle like hat then it will constantly be making the ground below it unwalkable, which means that the character will never be able to stand still.
Usually you use some kind of local avoidance for these kinds of situations, or you use multiple graphs so that one type of agents can make another graph unwalkable to make other kinds of agents avoid it.