Python Forum

Full Version: Traffic simulation - stopping a car
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey, I am just wondering how I might simulate an automobile traffic situation. For example, driving down a road, encountering an obstacle (maybe a stopped vehicle) and the simulating the 'normal' reaction time to bring one's vehicle to a stop. This could even be very abstract with vector line drawing or, instead, realistic with planes that are painted with photographic images. I would like to start with this scenario: a curvy road that changes altitude (mountain driving) and encounter a 'deer' on the road. That kind of thing. What was the drivers view of the obstacle. When will the car stop given normal human reaction time? I am also wondering about the 'clock' aspect of this. Will my CPU steal clock cycles and make the timing unreliable? Is there a workaround for this? Just wondering how you all might think of this. Is this a good Python project?