Shortly after completing the Pedestrian Simulation in Unity found here, I received another task that required me to design and implement a Traffic Simulation inside of Maya using Python. The focus was on six driver behaviors, in which we had to put into the traffic simulation.
- Emergency stop
- Spin out of control and crash
- Recover from stop
- Drive around obstacle
Having had a series of lecturers on Artificial Intelligence within games, the first implementation technique that sprung to mind was using a Finite State Machine which would easily be able to handle the different behaviors we were tasked with creating. Knowing this, I began researching into the world of State Machines to gain a deeper knowledge into the way they work.
View original post 474 more words