Sign in to follow this  

AI for 3D roads

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

This topic is 2084 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.

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