Traffic Nodes

For traffic simulations 2 nodes are available in the CrowdSim Node Editor. The Traffic Variable to variate traffic settings per agent. And the Traffic node to execute the traffic simulation.

These nodes can be used together with the crowdsim nodes. To create a simple traffic system you can add the next setup


See Add behavior to your agents for more details on using the CrowdSim Node Editor and its nodes.

Traffic Variable


With this option you can vary the speed, acceleration and other properties of your character.

Per setting you can set a minimum and a maximum allowed value. During Populate Agents a value between the minimum and maximum value will be chosen.

Options to variate:

  • Desired Velocity: The desired velocity of an agent moving forward in a traffic simulation.
  • Desired Time Headway: The desired time between an agent and the agent in front.
  • Maximum Acceleration: The maximum allowed acceleration of an agent.
  • Radius: The radius of an agent.
  • Minimum Spacing: The minimum allowed spacing with the agent in front.


Radius is used for collision detection. It is advisable to keep the radius small (1.5) and increase the Minimum Spacing for a better simulation result.

With a too large Radius cars will stop for traffic on other lanes. With a too low Minimum Spacing cars will intersect when standing still before a crossing.


With this node you can add a Traffic Simulation.



  • Agents: The set of agents that will be looked at when applying the traffic rules. Agents not added to this output will be ignored. When not connected at all, all agents in the scene will be used during the evaluation of the traffic rules.
  • System: The traffic system to place the agent on and evaluate.