Is this a valid solution ?
I will have several units all looking for paths according to their behaviours. In order to save some components, I was thinking on having a single Seeker on scene and all units asking for paths to that Seeker.
Is that a good approach ? or should I keep a Seeker per unit ?
Cheers.
Hi
No that will not work. The Seeker is built for a single agent, so if you request a new path when it is already calculating one, it will simply cancel the previous one (since it is very unlikely that an agent will need that) and start to calculate the new one instead.
If you really want to save components, you can use the direct AstarPath.StartPath call and use the Seeker.PostProcess to apply any modifiers (if necessary).