Back to the Grid: How a Former DMA Design Programmer Recreated the 2D Physics That Birthed Grand Theft Auto

As the gaming world eagerly dissects every frame of the highly anticipated Grand Theft Auto VI, marveling at its unprecedented graphical fidelity, hyper-realistic crowd rendering, and cutting-edge physics, a parallel conversation has emerged. Industry veterans and gaming historians are looking backward, tracing the lineage of this multi-billion-dollar entertainment juggernaut to its humble, top-down origins.

In a remarkable contribution to video game preservation and technical history, Patrick Kerr, a former programmer at DMA Design (the Scottish studio that would later become Rockstar North), has recreated the original 2D physics simulation that served as the mathematical foundation for the very first Grand Theft Auto (1997). Developed in JavaScript and hosted online, Kerr’s interactive tool allows modern developers, designers, and enthusiasts to experiment with the precise mechanics that defined the driving feel of the classic 1997 title.


Main Facts: The Digital Archaeology of a Masterpiece

The release of Patrick Kerr’s simulation offers a rare, hands-on look at the foundational math of early open-world game design. Long before the Rockstar Advanced Game Engine (RAGE) calculated complex skeletal deformation, ragdoll physics, and volumetric clouds, the entire virtual world of Liberty City, San Andreas, and Vice City was governed by rigid-body 2D vectors.

What is the Recreation?

Patrick Kerr has built a web-based, interactive physics sandbox called the Motion Lab. It is a faithful, modernized recreation of the original 2D vehicle physics simulation he wrote in the mid-1990s. This engine determined how cars accelerated, drifted, collided, and responded to player inputs in the original Grand Theft Auto.

The Original Platform vs. Modern Web Standards

The simulation originally began its life as a rudimentary wireframe demo written in GFA BASIC on an Atari ST. To make it functional for the commercial release of Grand Theft Auto, the codebase was subsequently ported to the C programming language to run efficiently on MS-DOS, Windows 95, and the original PlayStation (PS1). Kerr’s modern recreation has been written from scratch in JavaScript, featuring a clean, responsive graphical user interface that runs natively in any modern web browser.

Key Features of the Interactive Demo

The online simulator is not merely a static display; it is a fully interactive sandbox. Users can manipulate the physical properties of the vehicle and the environment using a series of keyboard inputs:

  • Car Mode (Key 1): The default simulation mode, mimicking the lateral friction, weight distribution, and steering dynamics of a standard GTA vehicle.
  • Ship Mode (Key 2): Alters the friction and momentum vectors to simulate buoyancy and water-based drift.
  • Brick Mode (Key 3): Strips away vehicle-specific handling characteristics, treating the object as a raw, high-mass, low-friction rectangular solid.
  • Side Collision Barriers (Key B): Toggles boundary physics on and off, showing how the object reacts to hard lateral impacts.
  • Vertical Gravity (Key G): Toggles gravity on or off specifically for the Ship and Brick modes, demonstrating how the system handles vertical forces.
  • Camera Dead Zone (Key Z): Toggles the camera’s tracking delay, showing how the camera system dynamically follows the player.
  • Speed-Based Zoom (Key X): Recreates the revolutionary dynamic camera zoom of the original Grand Theft Auto, which pulled the camera outward as the vehicle accelerated to give players a wider field of view at high speeds.

The interactive simulation can be accessed directly via Kerr’s portal at Motion Lab, while a comprehensive breakdown of the mathematics and development history behind the system can be found on his personal site at Pat Kerr’s 2D Vehicles.

While we wait for GTA 6, the demo that inspired the original Grand Theft Auto's vehicle physics is now playable…

Chronology: From "Race’n’Chase" to the Browser

To appreciate the significance of Kerr’s recreation, one must understand the tumultuous and highly experimental development cycle of the original Grand Theft Auto between 1995 and 1997.

[1995] "Race'n'Chase" Concept Drafted in Dundee, Scotland (DMA Design)
   │
[1996] Patrick Kerr Prototypes 2D Vehicle Physics in GFA BASIC on Atari ST
   │
[1996] Code Ported to C for Cross-Platform Optimization (DOS, Windows 95, PS1)
   │
[1997] "Grand Theft Auto" Releases to Critical and Commercial Acclaim
   │
[1999] DMA Design Acquired, Eventually Rebranded as Rockstar North (2002)
   │
[2024] Patrick Kerr Rebuilds and Releases the 2D Physics Simulator in JavaScript

1. The "Race’n’Chase" Era (1995)

In the mid-1990s, DMA Design, based in Dundee, Scotland, was renowned for creative, quirky puzzle games like Lemmings. The studio embarked on a new project titled Race’n’Chase, a multiplayer cops-and-robbers game. The initial design was highly structured, focusing on police chases, bank robberies, and racing through a simulated grid-based city.

2. Prototyping on the Atari ST (1996)

Before committing to production, the team needed to prove that driving a car from a top-down perspective could feel tactile, responsive, and fun. Patrick Kerr, working as a programmer at DMA, drafted the initial physics algorithms. He used an Atari ST—a popular home computer in Europe known for its robust MIDI capabilities and accessible programming environments—and wrote the prototype in GFA BASIC. This language allowed for rapid prototyping of mathematical vectors without the compilation overhead of C.

3. The Port to C and the Birth of GTA (1996–1997)

Once the core math of sliding friction, rotational inertia, and collision resolution was validated, Kerr and the programming team ported the algorithms to C. This move was essential for maximizing performance on the target platforms of the era: MS-DOS, Windows 95, and the PlayStation 1. During testing, a famous bug in the police AI caused the cop cars to become incredibly aggressive, ramming the player off the road. The developers realized this chaotic, emergent gameplay was far more entertaining than the structured racing game they had planned. Race’n’Chase was reworked, rebranded, and released in late 1997 as Grand Theft Auto.

4. The Modern Reconstruction (2024)

Decades after leaving DMA Design, and with the franchise now standing as one of the most successful media properties in human history, Kerr returned to his original notes. Recognizing the historical value of these early algorithms, he painstakingly translated the physics engine from its original 1990s logic into modern JavaScript, preserving the exact equations that dictated how millions of players first experienced virtual carjacking.


Supporting Data: The Mechanics of 2D Vector Physics

The original Grand Theft Auto was a technical marvel of its time, not because of its visual complexity, but because of its systemic depth. By operating within a strict two-dimensional plane, the developers had to use clever mathematics to simulate the weight, momentum, and tactile feedback of three-dimensional vehicles.

+--------------------------------------------------------------+
|             BASIC 2D VEHICLE VECTOR RESOLUTION               |
+--------------------------------------------------------------+
|                                                              |
|                     [Forward Velocity]                       |
|                             ^                                |
|                             |                                |
|                             |     /                          |
|                             |    / [Steering Angle]          |
|                             |   /                            |
|                             |  /                             |
|                             | /                              |
|         [Left Slide] <------O------> [Right Slide]           |
|                             |                                |
|                             |                                |
|                             v                                |
|                     [Lateral Friction]                       |
|                                                              |
+--------------------------------------------------------------+

Friction and Drifting Dynamics

In a 2D space, a vehicle is represented as a bounding box with a center of mass, a forward velocity vector, and a steering angle. To make a car feel like a car—rather than a sliding ice cube or a rigid train on tracks—the engine must constantly resolve two competing forces:

While we wait for GTA 6, the demo that inspired the original Grand Theft Auto's vehicle physics is now playable…
  1. Forward Grip: The tires pushing the car in the direction it is facing.
  2. Lateral Slip: The momentum of the car carrying it sideways when turning at high speeds.

Kerr’s code calculates the lateral velocity of the vehicle and applies a sliding friction coefficient. If the lateral velocity exceeds the tire grip threshold, the vehicle enters a "drift." This mathematical sweet spot is what gave the original GTA its beloved, arcade-style handling, allowing players to perform dramatic handbrake turns around tight city corners.

The Camera: Zoom and Dead Zones

A major hurdle in top-down driving games is visibility; if the camera is centered on the player at all times, driving fast means colliding with obstacles before they appear on screen. DMA Design solved this with two distinct systems, both featured in Kerr’s JavaScript recreation:

Feature Technical Implementation Gameplay Purpose
Speed-Based Zoom Camera altitude ($Z$-axis offset) is calculated as a function of the vehicle’s current velocity: $Ztextcam = Ztextbase + (v cdot k)$ Dynamically expands the player’s field of view at high speeds, allowing them to react to oncoming traffic and upcoming turns.
Camera Dead Zone A bounding box around the screen center. The camera remains stationary until the vehicle exits this boundary, triggering a smooth camera interpolation. Prevents nauseating camera jitter during micro-adjustments or minor steering corrections at low speeds.

Developer Insights: The Philosophy of Emergence

On his personal website, Patrick Kerr provides invaluable context regarding the design philosophy at DMA Design during the mid-1990s. The studio did not set out to build a cinematic narrative experience; instead, they were preoccupied with creating robust, reactive systems.

Designing for Emergent Play

"The original game was considered groundbreaking back in 1997 with its varied NPCs and emergent gameplay," Kerr notes. In the mid-90s, most video games were highly linear, governed by scripted triggers and predictable enemy paths. DMA Design took a different approach by focusing on systemic simulation. By giving vehicles, pedestrians, and police officers simple, robust physical and behavioral rules, the game world became a chaotic sandbox where unexpected scenarios occurred naturally.

The "Joy of Doing Nothing"

Kerr highlights a unique aspect of the original game’s design: its departure from traditional, goal-oriented gameplay loops.

"It was also a departure in that it was a game where you didn’t necessarily need to do anything: you could enjoy just driving around and looking at things."

This open-ended freedom—the sheer joy of navigating a simulated city, listening to the radio, and interacting with the environment—became the core identity of the open-world genre. It was Kerr’s physics engine that made this aimless exploration satisfying. If the driving mechanics had been stiff or unresponsive, the simple act of traversing the city would have felt like a chore rather than a leisure activity.

While we wait for GTA 6, the demo that inspired the original Grand Theft Auto's vehicle physics is now playable…

Implications: Preservation and the Road to GTA VI

The release of Patrick Kerr’s 2D physics simulation has profound implications for the gaming industry, highlighting the growing importance of software preservation and illustrating the evolution of interactive design over nearly three decades.

+-----------------------------------------------------------------+
|                    THE EVOLUTION OF GTA PHYSICS                 |
+-----------------------------------------------------------------+
|                                                                 |
|  [1997 - GTA 1]                                                 |
|  - 2D Vector Rigid-Body Physics                                 |
|  - Simulated Lateral Friction & Basic Collisions                |
|  - Flat Grid-Based Environments                                 |
|                                                                 |
|  [2001 - GTA III]                                               |
|  - 3D Rigid-Body Physics (RenderWare Engine)                    |
|  - Real-Time Suspension, Mass Distribution, and Gravity         |
|  - Multi-Layered Urban Environments                             |
|                                                                 |
|  [2008 - GTA IV / V]                                            |
|  - RAGE Engine & Euphoria Physics Integration                   |
|  - Real-Time Deformable Vehicles & Dynamic Weight Transfer     |
|  - Procedural Ragdoll & Biomechanical Reactions                 |
|                                                                 |
|  [2025 - GTA VI]                                                |
|  - Next-Generation RAGE Engine                                  |
|  - Computational Fluid Dynamics (CFD) for Aerodynamics          |
|  - Photorealistic Soft-Body Deformation & Materials Physics     |
|                                                                 |
+-----------------------------------------------------------------+

The Importance of Interactive Game Preservation

As the video game industry matures, preserving its history has become a critical challenge. Source codes are routinely lost, hardware degrades, and the intellectual property of defunct studios is often locked in legal limbo.

Recreations like Kerr’s Motion Lab represent a new frontier in game preservation. By translating obsolete, platform-specific code (such as 16-bit Atari ST GFA BASIC) into modern, open web standards like JavaScript, pioneer developers can ensure that the foundational techniques of game design remain accessible to future generations of scholars and programmers.

From 2D Pixels to GTA VI: A 29-Year Technological Leap

When comparing the wireframe vector calculations of Kerr’s 1996 prototype to the state-of-the-art systems driving Grand Theft Auto VI, the technological leap is staggering:

  • Dimensionality: The franchise has evolved from a flat, two-dimensional coordinate system ($X, Y$) to fully realized, three-dimensional spaces ($X, Y, Z$) governed by complex verticality, suspension travel, and tire deformation.
  • Materials Science: While the 1997 original treated all vehicles as rigid bounding boxes with uniform physical properties, modern iterations simulate distinct material compositions—glass, fiberglass, steel, aluminum, and rubber—each reacting realistically to ballistic impact, friction, and kinetic energy.
  • Environmental Interaction: In the original game, environmental interaction was limited to basic collision barriers (toggled via the B key in Kerr’s demo). GTA VI is set to feature advanced computational fluid dynamics (CFD) to calculate wind resistance, water wake generation, and dynamic debris displacement.

Yet, despite these monumental leaps in processing power and graphical fidelity, the core philosophy of the franchise remains completely unchanged from Patrick Kerr’s early prototypes. The thrill of stealing a digital car, taking a corner too fast, feeling the back tires break traction, and sliding gracefully into an open lane is a design lineage that began 29 years ago on a humble Atari ST, written in GFA BASIC, and preserved today in a simple browser window.

Leave a Reply

Your email address will not be published. Required fields are marked *