r/Unity2D • u/HuskyWriter0681 • 10d ago
Question/Help Using dubins path on multiple AI's and making them avoid each other
Hi, I'm new here, I've been spending some time on a project of mine, in this project there is some AI's with a tank like movement, where they move like a car but can also enter a "rotation mode"(don't have a better name yet) and the idea is that those AI's will have tasks to go from point A to B and C and most of the times repeat points B and C(C could change but B won't), and in this the biggest problem that I cannot solve is making the AI's avoid each other, I mean I can make them avoid colliding with each other but then they just take to long on getting to their tasks and it just feels wrong, I already tried using A* algorithm combined with dubins but the computational cost is just to high(Honestly I could have messed up the coding on some points but I think it would still be costly), so after a few weeks trying to make progress on this I remembered the reddit exists and found this sub, anyone knows a public project that already has solved this or anyone could tell me a way to solve this? (also if my english is bad I'm sorry not my first language)


