This is my custom completely physics-based car AI based on “agent-steering” style movement. The entire system is 125 lines and is achieved using only math and physics.
Edit: I have now polished the math into a module, and have added significantly better control over the friction forces applied, meaning the vehicle is now capable of moving significantly faster and gauging its breaking distance more accurately.
It also means… it can now go completely in reverse, with a simple change from a “false” to a “true”!