Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Traffic simulation AI in UE4


I'm currently working on a traffic simulation AI in unreal4 for uni. My mentor advised me to look into different ways to accomplish large-scale AI for traffic flow in cities.

I'm having a fairly hard time finding any good papers/talks about the topic that could teach me more about the different techniques used so far in the (gaming) industry. Personally, I'd go for an actor based AI where every car has its own "brain" and "eyes". But according to my mentor, there are different possibilities though he didn't want to tell me which. After spending quite some time looking into "Traffic simulation in games" I find it very tough to find anything useful for my case.

If anyone would have any good GDC talks or other videos or research papers on how other games did their AI (cities skylines, SimCity, GTA, cities in motion, etc) it'd be much appreciated.

I know roughly how to code it all, this work is graded on my research more than my code. So I have to find useful information on AI techniques that I can delve deeper into.

Thanks in advance, Aaron

Product Version: UE 4.17
more ▼

asked Sep 26 '17 at 06:51 PM in Using UE4

avatar image

1 1 1 1

avatar image NC3D Jan 25 '18 at 01:32 AM

Aaron, We are looking at developing a large scale traffic simulation in UE.
Can you tell me more about your project and which direction you took? Thanks! -Donald Newlands

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I was working on a similar VR Simulation, and i used "Spline Mesh" based movement. I made couple routes, and 4-5 cars were using the same route with different delays. i made the logic based on traffic lights, that they should stop if its red and if they are in the correct location for that. and made variable for each stopped car to -vector in location make sure they don't stop on top of each other, and so on and so on... For the larger scale you might not want to use this, because after some time if there's plenty of cars they might collide eventually because of the traffic lights if you make bad calculations, but this did the trick for me :)

more ▼

answered Sep 27 '17 at 04:42 AM

avatar image

44 2 5 10

avatar image nightmare_unreal Nov 29 '18 at 08:27 AM

Can you share your project for reference ??

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question