Decided to take on car physics today and came out with this. Thoughts?

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”!

12 Likes

That’s amazing! Will this ever be for sale/open source?

1 Like

These car physics look very good! Nice job on this!

1 Like

Yes! I very much plan to polish the code, and release a tech demo place that is open to edit / copy so anyone can use it.

1 Like