Sign in to follow this  
lucky6969b

How to keep the pathfinder in lane

Recommended Posts

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 [i]following,[/i] or flow fields.

See [url="http://www.red3d.com/cwr/steer/"]http://www.red3d.com/cwr/steer/[/url] 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this