Has anyone programmed a traffic system or know of a link with more info? I've done some searches, but I get too many hits dealing with web traffic and not car traffic.
I'm not looking for anything too advanced,... my first test will basically be a 4 block square with one four way intersection in the middle. 2d or 3d does not matter, I'm mostly trying to figure out a good way to make it work.
My initial guess is to have many waypoints for each lane, and at the intersections have the car choose a random waypoint to go towards. Other issues would be to make sure cars do not run into other cars whenever possible, or do not get jammed in a corner or something.
Anyways,... anyone have anything?
Thanks
I'm not looking for anything too advanced,... my first test will basically be a 4 block square with one four way intersection in the middle. 2d or 3d does not matter, I'm mostly trying to figure out a good way to make it work.
My initial guess is to have many waypoints for each lane, and at the intersections have the car choose a random waypoint to go towards. Other issues would be to make sure cars do not run into other cars whenever possible, or do not get jammed in a corner or something.
Anyways,... anyone have anything?
Thanks