Agent goes over unwalkable tiles when I want it to move in grid

i want my agent to move in grid, adding a collider 2D fixes it overlapping the tiles but the agent then gets stuck. Here the red triangle is the agent and as you can see it is on top of a unwalkable tile


i basically want it to move along the path, not diagonally

Which movement script are you using? I can look a little closer at this with that information :+1:

I am using AIPath, tried using AILerp too but it didn’t work

You were right actually I do think AILerp fixed this issue! It is though lacking some of the abilities that AIpath has, like stopping before reaching target and such and still making some diagonal turns.

If you want, I don’t mind helping figure out what AIPath wasn’t working :slight_smile: Totally up to you if you’d want to put in the time to get AIPath going, or just stick with AILerp. If you’re interested in using AIPath for it’s features, sending a video/gif them moving into unwalkable areas would help a lot, as well as your AIPath settings :smiley:

Thank you, for now AILerp seems to work for my case

1 Like