I am creating a tower defense game where when I place a wall the enemy monsters recalculate the path.
The problem is that pathfinding behavior act very weird, the monsters rotate around them-self or move around. When they rotate or move around, they can collide with wall causing them to stand still.
The code
drive.google.com/open ... klFT3BiQ3M
if anyone has any idea how to make the pathfinding behavior work, please answer