Dynamic Grid Obstacle doesn't seem to do anything?

Video link: https://youtu.be/_MuDpEzGqWc

I am trying to make a 2d turn-based game on a grid. I have a Dynamic Grid Obstacle component on all the enemies, but for some reason nothing seems to be happening to the grid, and enemies can easily walk through each other/stack on top of each other.

All enemies have a seeker component and a Circle Collider 2D on them. I’m only using the seeker to generate a path, and the enemy follows that path on their turn.

I must be missing something, but I can’t figure out what it is. Can you help me?
Here’s a screenshot of the paths being generated.

So yeah as it turns out what I was supposed to be using was the SingleNodeBlocker. My bad.

In regards to the video I was posting, turns out the enemies were on a different physics layer than the grid was looking for, so it wouldn’t detect the obstacle. Either way, enemies would have ended up blocking themselves regardless.

1 Like