CHAPTER 95: Four Wheels (Patreon)
Content
CHAPTER 95: Four Wheels
In Los Santos the cars were the most important means of transportation, the main way to move through a city of thirty-six square kilometers, and the tool that turned the exploration of a neighborhood into the exploration of a world. CJ didn't fly. He didn't teleport. He had no grappling hook or horse or magic portal. He had cars. And the cars had to feel good.
"Good" didn't mean realistic. George was clear on that from the first day of the design. A realistic driving simulator was boring for an open-world game: real cars braked gradually, lost control on curves at moderate speeds, and stopped with the slow inertia of two tons of metal obeying Newton's laws. If Los Santos replicated that, the player would spend more time braking than playing.
"Good" meant satisfying. The cars of Los Santos had to respond to the player's input with the immediacy of something that wants to be driven. Accelerating should feel like launching forward. Braking should feel like stopping with authority. Turning should feel like cutting the air with a knife. And crashing should feel like a catastrophe of metal and glass that was fun instead of punishing.
George remembered the driving of the original clearly. It was arcade with weight: the cars felt heavy but responded fast, skidded on the curves but didn't lose control completely, and absorbed the impacts with a generosity that real physics wouldn't allow. It was the fantasy of driving: what people believed it felt like to drive a muscle car at 150 kilometers per hour down a Los Angeles freeway even though none of them had done it.
*
George built the vehicle physics on a suspension model that simulated each wheel independently.
Each wheel was a spring-damper: a spring that absorbed the impacts of the terrain and a damper that dissipated the energy of the rebound. When the car went over a bump, the wheel that touched the bump compressed (the spring shortened and the damper resisted the movement), and when it came out of the bump, the wheel extended (the spring pushed and the damper slowed the extension to keep the car from bouncing like a ball).
Four independent wheels meant the car reacted differently according to how the terrain affected each wheel. If only the front right wheel went over a bump, the car tilted to the right and forward. If the two front wheels went over at the same time, the car tilted forward without rotating. If all four went over at the same time, the car went down and up uniformly.
The suspension parameters defined the character of each vehicle. George configured eight base types:
The sedan was the default vehicle: medium suspension, stable traction, moderate top speed. It was the car the player found most frequently in the streets and that served for everything without being exceptional at anything. Springs of stiffness 0.6, dampers of 0.4. The car that didn't draw attention.
The muscle car was brute power: strong engine, rear-wheel drive, hard suspension that transmitted every imperfection of the asphalt to the player. It accelerated from 0 to top speed in 3 game seconds, braked badly, and skidded on every tight curve if the player didn't let off the accelerator before turning. Springs of 0.9, dampers of 0.3. The car that made noise and that killed those who didn't respect it.
The lowrider was heavy and slow with hydraulic suspension George implemented as a system of variable springs: the player could raise and lower each corner of the car individually with button combinations. It served the culture: in South Central, lowriders were identity, and CJ in a lowrider with the suspension lowered and Radio Los Santos at full volume was a statement the Grove Street Families understood.
The motorcycle was two wheels with a simplified balance model. George didn't simulate the real gyroscope of a motorcycle because the complexity was disproportionate to the benefit. Instead, the motorcycle had an automatic lean system that rotated the model up to 30 degrees in the curves and that corrected to vertical when the player stopped turning. The motorcycle was fast, vulnerable to impacts (CJ went flying with any frontal collision), and the fastest way to cross the city dodging traffic.
The bicycle was the slowest vehicle and the most personal. No engine, powered by the player's pedaling (mashing the accelerate button), with a top speed that depended on CJ's stamina stat. George included it because the original included it and because the bicycle was the vehicle of CJ's childhood, of the neighborhood, of the times before the gangs and the guns.
The truck was mass. Slow to accelerate, slow to brake, impossible to maneuver in narrow streets. But unstoppable in collisions: a truck against a sedan was a crushed sedan. The mass physics made the impacts proportional: the heavier vehicle pushed the lighter one according to the ratio of masses and velocities.
The police car was an improved sedan: faster, better braking, firmer suspension. The players stole it from the parked police cars and used it for missions because it was objectively superior to most civilian cars. George designed it that way on purpose: stealing a police car should feel like an upgrade that justified the risk.
The ambulance was the truck with a siren: slow, heavy, with a soft suspension that made the vehicle sway on every curve like a boat on waves. It was terrible to drive and it was the vehicle of the paramedic missions where the player picked up the injured against the clock, which turned the bad driving into a source of tension.
*
Each wheel had a friction coefficient that determined how much grip it had against the surface.
George implemented two types of friction: static (the grip when the wheel rolled normally) and kinetic (the grip when the wheel skidded). The static friction was always greater than the kinetic, which meant a wheel that rolled had more grip than one that slipped. The moment where the wheel went from rolling to slipping was the moment where the player felt he was losing control: the steering stopped responding with precision and the car slid in the direction of its inertia instead of the direction the player wanted.
The skid was the emotional heart of the driving. A car that never skidded felt like a train on rails: predictable, safe, boring. A car that skidded constantly was uncontrollable and unfair. The sweet spot was in the middle: the skid had to be predictable but dangerous. The player had to be able to induce a skid on purpose (turning sharply at high speed) and had to be able to correct it by letting off the accelerator and countersteering. The skid was a skill: the good players used it as a tool to take tight curves; the bad ones crashed into the streetlights.
George spent a week calibrating the skid thresholds for each type of vehicle. The sedan skidded at 80 km/h on a tight curve. The muscle car skidded at 60. The motorcycle didn't skid: it lost balance and fell, which was worse. The truck skidded at 40 but when it did it was a wave of metal that didn't stop until something stopped it.
The surface modified the friction. Dry asphalt was the standard (coefficient 1.0). Wet asphalt dropped to 0.75 (the weather system). Dirt dropped to 0.6. Sand from the Santa Monica beach dropped to 0.5. And grass was 0.55 with a different behavior: on grass, the cars didn't skid but braked, as if the grass swallowed them.
*
When two cars crashed in Los Santos, the engine calculated the impact with the precision necessary for it to feel violent and with the simplification necessary for it not to kill the framerate.
The calculation was: the point of contact between the two collision geometries (each vehicle had a simplified convex hull for collisions that was simpler than its visual geometry), the relative velocity between the two vehicles at the point of contact, and the mass of each vehicle. The resulting force was applied to both vehicles in opposite directions, proportional to their masses: a sedan against a truck bounced while the truck barely flinched.
The visual deformation was the effect that sold the impact. George implemented vertex displacement: the vertices of the vehicle's visual geometry near the point of impact were displaced inward into the model, proportionally to the force of the crash. A light blow sank the vertices 2-3 centimeters. A frontal crash at high speed sank the entire hood 30 centimeters, broke the windows (the triangles of the glass were eliminated and glass particles were spawned), and bent the side panels.
The deformation was cumulative: each crash added more damage to the same vehicle. A car that had crashed five times looked like an accordion with broken windows and a hood that wouldn't close. Marcus designed the deformation map of each vehicle with zones that determined which parts were more vulnerable: the front and rear panels deformed more than the sides, which deformed more than the roof.
And the cars exploded, for fun. When the accumulated deformation of a vehicle exceeded a threshold (which was equivalent to 8-10 severe crashes), the car's engine started to smoke. Then it caught fire. And after 10 seconds of fire, it exploded in a fireball that threw the remains of the vehicle in a radius of 5 meters. CJ had to get out of the car before the explosion, which added a layer of urgency to every chase where the player's car accumulated damage.
"Cars don't explode like that in real life," Daniel said when he saw the explosion system working.
"None of this is real life, Daniel. It's the fun version of real life. And in the fun version, cars explode."
*
Daniel optimized the vehicle physics for PS2 with the resignation of an engineer who knows that the weakest platform always pays the highest price.
On PC, the physics module simulated each of the four wheels independently for every vehicle on screen, which meant that 20 cars had 80 wheels being simulated simultaneously. On PS2, simulating 80 wheels at 30 fps was impossible with the Emotion Engine.
Daniel implemented a degradation-by-distance system. The player's vehicle always used the complete 4-wheel model. The vehicles within a radius of 50 meters too. The vehicles between 50 and 100 meters used a simplified 2-wheel model (one front and one rear, like an invisible bicycle). The vehicles beyond 100 meters used a rigid-body model with no wheel simulation: they moved in a straight line or in predefined smooth curves and only activated the complete physics if the player approached.
"At 100 meters on PS2, a car is 15 pixels wide," Daniel said. "No one is going to notice that its wheels don't have individual suspension."
"And if the player uses the sniper rifle and zooms in on a car at 100 meters?"
Daniel stopped.
"The sniper rifle has 4x zoom. At 100 meters with zoom, the car is 60 pixels. They still won't see the suspension. But they'll see that the car turns rigidly instead of leaning on the curves."
"Solution?"
"If the player is using the sniper rifle, I activate the complete physics for the vehicle in the center of the crosshair. Just one. The cost is one extra wheel but only while the player is aiming."
George nodded. It was the kind of solution Daniel produced: inelegant in the code, invisible to the player, perfect in practice. The kind of trick that made PS2 work through intelligence applied to the limitations.
*
George drove a car down Grove Street for the first time one Friday in July.
Not the box with wheels of the streaming test. A real car. The first 3D vehicle model Marcus had finished: a generic sedan based on a 1992 Honda Civic with rounded panels and the beige color that was the most common color of Los Santos traffic because it was the most boring color possible and the traffic had to be boring for the special cars to stand out.
The sedan had 1,800 triangles at high LOD. Four wheels that turned with the speed of the vehicle. Semitransparent windows where you could see CJ sitting inside (CJ was a placeholder: a gray mannequin Marcus hadn't yet replaced with the real model). And a basic interior with a steering wheel, seats, and a dashboard that had a working speedometer.
George started the car. The suspension compressed slightly under the weight of the start, a detail that happened in one frame but that the player's body registered unconsciously as weight. The car advanced down Grove Street with the slow inertia of a four-cylinder sedan: gradual acceleration, without the explosion of a muscle car, with the placeholder engine sound that was a variable-frequency hum that rose with the speed.
George turned left at the first intersection. The sedan tilted to the right from the centrifugal force, the outer wheels compressing more than the inner ones. The turn was smooth, predictable, without drama. It was a sedan. Sedans had functionality, not drama.
George accelerated down the next straight. 40, 60, 80 kilometers per hour. The cubes of buildings passed on the sides. The streetlamps marked the rhythm. The streaming loaded the next chunk without George seeing it. The June sunset lighting painted the cubes orange. And the sedan advanced down a street that wasn't yet a real street but that already felt like one: with weight, with inertia, with the physics of four wheels on asphalt and an engine that responded to the accelerator with the obedience of two tons of metal that want to go where the driver takes them.
George braked at the end of the street. The sedan stopped with the frontal compression of the suspension that was the physical equivalent of a nod: the car dropping its nose when braking, a movement of millimeters that the player's brain interpreted as weight, as mass, as reality.
It was a beige sedan on a street of cubes. It wasn't Los Santos. But driving it felt like driving. And that was what mattered.
George parked the sedan in front of the cube that was going to be CJ's house. He turned off the engine. He stayed a moment looking at the street through the windshield of Marcus's sedan, with the NGN sunset light coming through the car windows and painting the interior orange.
Eight months of engine. Seven systems completed. And for the first time, George could sit inside something he had built and look at the world through a window that felt like a real window.
There was a lot left. The animation, the combat, the camera, the AI. But the foundations were there. And the foundations held up a car that had weight and a street that existed.
End of Chapter 95