hi guys, i have this unresolved problem for a long time. I have pathfinding enemies that move in an enclosed area. I have activated obstacle pathfinding to enemies but it is not calculated having already activated the behavior pathfinding. I would like to find a way to make the enemies turn in the enclosed space without them crashing when they collide. Someone advised me to use physics for collisions.
this is my code
When enemies collide they get stuck … how can I change the direction of the enemies or make them collide with each other by simulating physics?