Now roads can be drawn and it’s looking cool!
As you can see in the recording, without drawing the roads, the cars just stop at the intersection because they cannot find any routes (gaps between roads are intersections, I’ll fix that later). By drawing a road, the cars can drive to their destination in the simulation.
The biggest issue I had while coding this was mixing up physical IDs and internal IDs, which are not interchangable (I should have probally used a class or struct to represent IDs instead of a raw size_t).
Next, I’ll work on making the intersections look better and maybe get some statistics on how well the cars preformed at the end of the simulation!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.