• Advertisement
Sign in to follow this  

How to keep the pathfinder in lane

This topic is 2323 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am going to split a narrow aisle into 2 lanes.
How do I keep the pathfinder in lane without swaying left to right in a straight path also that they don't collide?
Thanks
Jack

Share this post


Link to post
Share on other sites
Advertisement
If you are using a "pathfinder" (e.g. A*), then just make sure your edges don't cross. However, from your question, it sounds like you are not using a "pathfinder" but rather having agents moving at will. In that case, you would either want to look into steering, path following, or flow fields.

See http://www.red3d.com/cwr/steer/ for more info.

Share this post


Link to post
Share on other sites
Thanks for the info. It's very useful. And I'd like to know how to generate 2 paths that don't cross each other using A*. Assuming these guys don't know about each other context
I may be looking into something called traffic simulation, right?
Thanks

Share this post


Link to post
Share on other sites
One simple idea for traffic simulation is to have each agent "announce" what they are going to do in the next few time steps, so the other agents consider those spaces occupied in the near future. I would start by using that information in steering behaviors, but you can incorporate it in A* as well.

Share this post


Link to post
Share on other sites
Flow Annotations sound like what you're looking for. Take a look at Wang and Botea's "Fast and Efficient Multi-Agent Pathfinding" paper from ICAPS 2008.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement