Ever since I made my units move to a certain location a problem has popped up that of course if I try to make two or more units go to the same place they fight for the same spot. Am I just being stupid and unity already has a way around this or do I need to do something specific? I have looked into flow field path finding but no way on how to implement it. I dont want to have to use a ready made script but some pointers and other options are more than welcome.
\$\begingroup\$
\$\endgroup\$
4
-
\$\begingroup\$ Don’t make them go to the same spot... use offsets and put each unit to the goal location with its offset. \$\endgroup\$Coldsteel48– Coldsteel482019-11-05 11:34:13 +00:00Commented Nov 5, 2019 at 11:34
-
\$\begingroup\$ What do you mean by "no way on how to implement it"? What have you tried so far based on your research online and in our archive of existing Q&A, and where are you stuck? \$\endgroup\$DMGregory– DMGregory ♦2019-11-05 13:11:51 +00:00Commented Nov 5, 2019 at 13:11
-
\$\begingroup\$ This has been asked a million times before. Search for boids, swarm pathfinding, etc \$\endgroup\$BlueRaja - Danny Pflughoeft– BlueRaja - Danny Pflughoeft2019-11-05 16:15:45 +00:00Commented Nov 5, 2019 at 16:15
-
\$\begingroup\$ I dont know if I should do so via a script or making my component etc, Greg. \$\endgroup\$Kiyo– Kiyo2019-11-12 08:58:55 +00:00Commented Nov 12, 2019 at 8:58
Add a comment
|