RC RANDOM CHAOS

GTA's 2D Physics Simulator Recreated for 30th Anniversary

· via Hacker News

Original source

2D Vehicles

Hacker News →

A developer has recreated a 2D physics simulation that became the foundation for vehicle mechanics in ‘Grand Theft Auto.’ Originally written in GFA BASIC for an Atari ST in 1996, the simulation was later ported to C for use in the game. The recreation, now in JavaScript, includes three modes: Car, Spaceship, and Brick, each with distinct controls and physics behaviors. The original prototype combined a rigid body with a simple car model, using classical 2D rigid body dynamics to handle rotation more coherently than typical game physics of the time. The simulation’s core was enhanced with an approximate model of tire behavior, providing a ‘good enough’ approximation for game purposes.

Read the full article

Continue reading at Hacker News →

This is an AI-generated summary. Read the original for the full story.