Simple Driving Game Physics - How To Steer A Car Accurately

Опубликовано: 23 Июнь 2026
на канале: Dubious Insights
7,756
212

Accurate steering for a car, bus, or any vehicle with two axles using the simple Ackermann steering model. This ensures that you won't get weird side slippage when you're driving. And is an important foundation for things like self driving A.I. games.

The whole point of Ackermann steering is that the front wheels are turned at different angles, which ensures that every wheel is rotating around the same center point when the car turns. However each while is rotating on a slightly different radius.

Prior to steering geometry like this, if you just had the wheels turn at the same angle, they would be forced to slip sideways on the ground, which would put non-desirable force on the wheel attachments, and tend to break things.

I based this on this tutorial
http://rmgi.blog/pygame-2d-car-tutori...
which I found from Ras Maxim's youtube video
   • Car physics: steering with Python and Pygame  

The Ackermann steering images for the cart are from wiki commons here
https://en.wikipedia.org/wiki/Ackerma...
https://en.wikipedia.org/wiki/Ackerma...
By Ackermann.svg: User:Bromsklossderivative work: Andy Dingley (talk) - Ackermann.svg, CC BY-SA 3.0, https://commons.wikimedia.org/w/index...
https://en.wikipedia.org/wiki/Ackerma...
By Ackermann.svg: User:Bromsklossderivative work: Andy Dingley (talk) - Ackermann.svg, CC BY-SA 3.0, https://commons.wikimedia.org/w/index...

And the third image is one I modified from the first picture.

The bus image is based on
https://pixabay.com/vectors/bus-trave... by Clker-Free-Vector-Images

The car image is based on
https://pixabay.com/vectors/car-vehic... by OpenClipart-Vectors

The smoke image is based on
https://pixabay.com/photos/ash-cloud-... by Pexels