tag:blogger.com,1999:blog-1791631495483462759.post6195568727209547950..comments2024-03-25T07:29:21.225-07:00Comments on 3DWorld: Car Navigation UpdateFrank Gennarihttp://www.blogger.com/profile/02815853731800103017noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-1791631495483462759.post-58249565323789644812020-10-20T16:11:05.443-07:002020-10-20T16:11:05.443-07:00YEs, "right turn on red" was a good addi...YEs, "right turn on red" was a good addition. It didn't help much with the traffic though, which kind of surprised me. I guess when there's enough traffic, there are always oncoming cars.<br /><br />I can get the front car in the train by iterating over get_car_in_front(). Initially that was too slow for long lines of cars. I ended up having to sort cars by road then position along the road. This made the train all consecutive cars - except for when they went around a bend. But fortunately that case was rare and didn't take too much runtime to handle.Frank Gennarihttps://www.blogger.com/profile/02815853731800103017noreply@blogger.comtag:blogger.com,1999:blog-1791631495483462759.post-29029746879566356682020-10-20T15:36:23.226-07:002020-10-20T15:36:23.226-07:00"allow a car to exit the intersection even on..."allow a car to exit the intersection even on a red light" seems like an important change if you're going for realism. Seems like having access to the front car in the "train" instead of just the next car on the road would help.Paul Spoonerhttps://www.blogger.com/profile/17640871289041630907noreply@blogger.com