Jump to content
  • Advertisement
Sign in to follow this  
vir2007

AI for 3D roads

This topic is 2448 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

Hi all,

I have a 3D city with roads, and i want to make trafic only on those roads only

what should i have to do?

how to define roads into data for AI
i didnt find similar problem over the internet

Thanks

Share this post


Link to post
Share on other sites
Advertisement
If you mean like having something like in simcity but more complex and not a gird, you could just take all intersections and save data on what other intersections you can go to from that specific one (curves would be intersections too i guess, you could add data for how to turn and drive on intersections to make it look ok)

Then make complex AI which simulates traffic flow or something.

Share this post


Link to post
Share on other sites
Hi thanks for ur reply

im stack on how to define for each city the road and connect it later with AI

i didnt find any topic on google about that, because its not like using grids ...

Share this post


Link to post
Share on other sites
Never mind grids... use nav graph nodes with edges between them. Tell the AI they can only walk from one node to the ones connected via edges. If you edges are on the roads (like in the video), the AI will look like it is staying on the roads.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!