2D Vehicles(patkerr.co.uk)
621 points by Michelangelo11 6 days ago | 118 comments
tl;dr: In 1996, the author wrote a 2D rigid-body physics simulation in GFA BASIC on an Atari ST that became the vehicle system in the original Grand Theft Auto. For its 30th anniversary, they've recreated it in JavaScript ("Motion Lab") with playable Car, Ship, and Brick modes. The post details the design: a proper rigid-body core with torques (uncommon in games then) layered with a deliberately simplified, non-physical tyre model that applies velocity-proportional resistance along and across each wheel's heading to produce convincing car-like handling.
HN Discussion:
  • ↑Appreciation for the historical significance and nostalgia of GTA 1/2 car physics
  • •Related references to other foundational 2D driving/physics models and games
  • ↓Criticism that the blog post's diagrams are poor and lacks explanation of design reasoning
  • ↑Praise for the prototyping approach and value of simple 'toy' physics
  • ↑Personal struggles replicating similar 2D vehicle physics, highlighting the achievement