Rescanning from code / Choosing random path

HomeForumsA* Pathfinding ProjectBeginner QuestionsRescanning from code / Choosing random path

This topic has 1 voice, contains 3 replies, and was last updated by  Davste 83 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
Author Posts
Author Posts
February 22, 2012 at 12:35 #1546

Davste

I have enemies following the player. The problem is that the enemies end up taking the same path, follow each other like ducks (and also do not take each other’s positions into consideration).

Here’s a 12 second video that shows my problem: http://www.youtube.com/watch?v=QyfCUt2oZxM

February 22, 2012 at 17:58 #1547

Invalid

Taking the same path is a conclusion of shortest path algorithm.If you want them to follow a complete different path, you should give them different targets

February 24, 2012 at 19:00 #1550

Davste

You see the line in the video though – they do not take each other’s position into consideration. Is there any way I can fix that?

February 25, 2012 at 17:19 #1559

Davste

I just need to know one thing – how do I rescan (like pressing the scan button in the unity editor) from code during runtime?

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Rescanning from code / Choosing random path
Your information:






<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>