Pathing is Bugged

There appears to be a bug with pathing and I don’t know how to debug or figure out what the problem is.

I have 4 identical buildings placed, units will path to the entrance.
2 of the buildings were correctly pathed to, 2 others were pathed incorrectly…

It appears any buildings placed on the same Y axis will be bugged.

Noticed left/right buildings in screenshot:

Hi

That looks strange. Could you verify that the building entrances are positioned at the right locations (maybe send a screenshot?). Are you using one of the built-in movement scripts to calculate the paths?

They are correct positions.

I think I found the problem.

If the destination tile is not walkable, the destination position would be way off like my screenshot. It doesn’t stop next to the tile but a few tiles away.

That’s odd. It should stop at the closest tile to the specified destination.