coastline 0.0.4
Loading...
Searching...
No Matches
vehicle.h File Reference

The vehicles of a race, the cars they are, and their place on the track. More...

Include dependency graph for vehicle.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CarModel
 A car the players can choose. More...
struct  VehicleModelLoad
 The decompression of the model of a car into a slot. More...
struct  Vehicle
 A vehicle. More...

Macros

#define MAX_VEHICLES   4
 The number of vehicles a race can hold.
#define VEHICLE_LAP_TIMES   5
 The laps of a race whose times a vehicle keeps.
#define CAR_MODELS   13
 The cars the players can choose.
#define VEHICLE_MODEL_SLOTS   4
 The slots the models of the cars of the menus load into.
#define VEHICLE_GHOST   2
 The ghost mode of a vehicle that other vehicles pass through and that fades back in.

Functions

void UpdateVehiclePhysicsFrame (Vehicle *vehicle)
 Run a frame of a vehicle: fly it, or put it on the ground, drive its wheels and step its physics.
void SetVehiclePosition (Vehicle *vehicle, f32 x, f32 y, f32 z)
 Put a vehicle at a position, with its body and the states of its steps.
void InitVehicleOrientationFromAngle (Vehicle *vehicle, f32 angle)
 Turn a vehicle upright to face an angle about the vertical.
void SetVehicleFrameMatrix (Vehicle *vehicle, f32(*m)[4])
 Set the frame of a vehicle and the orientation of its body from a matrix.
void SetVehicleVelocity (Vehicle *vehicle, f32 x, f32 y, f32 z)
 Set the velocity of a vehicle.
void RotateVehicleByEuler (Vehicle *vehicle, f32 yaw, f32 pitch, f32 roll)
 Turn the body of a vehicle by angles about its vertical, sideways and forward axes, in turn.
void SetVehicleTurnRate (Vehicle *vehicle, f32 x, f32 y, f32 z)
 Set the angular velocity of a vehicle.
void InitVehicleColorAndPhysics (Vehicle *vehicle)
 Paint the model of a vehicle its colour and set up its physics.
void SetVehicleModelSlot (Vehicle *vehicle, s32 slot)
 Give a vehicle the model of a slot.
void InstallVehicleModel (Vehicle *vehicle, s32 slot, s32 car)
 Load the model of a car into a slot and give it to a vehicle.
void InstallVehicleModelCopy (Vehicle *vehicle, s32 slot, s32 car)
 Load the model of a car into a slot and give it to a vehicle, as InstallVehicleModel() does.
void LoadAndActivateTrackWithPaintColor (Vehicle *vehicle, s32 slot, s32 car)
 Load the model of a car into a slot, give it to a vehicle, and paint it the color of the vehicle.
void LoadVehicleModel (VehicleModelLoad *load, s32 slot, s32 car, s32 buffer)
 Start loading the model of a car into a slot through a buffer of g_aDmaWorkBuffers.
s32 IsVehicleModelLoaded (VehicleModelLoad *load)
 Whether the load of a model is done.
u32 PollVehicleModelDma (VehicleModelLoad *load)
 Continue the load of a model, and once it is done, record the car of its slot and fix up its pointers.
void ResetVehicleState (Vehicle *vehicle)
 Reset the frames, cameras, velocity, place on the route and gearbox of a vehicle for its car.
void BindPlayerInputToVehicle (Vehicle *vehicle)
 Give a vehicle the input of the player of the same index.
s32 IsVehicleModelValid (s32 car)
 Whether the model of a car is on the cartridge.
void ChooseVehicleCar (Vehicle *vehicle)
 Choose the car of a vehicle.
void DriveAiVehicle (Vehicle *vehicle)
 The driver of a computer's vehicle, which runs its behaviour for the frame.
void SimulateVehiclePhysicsSubstep (Vehicle *vehicle)
 Step the physics of a vehicle on the ground for a frame: drive its wheels, push it by its springs, grip and dampers, collide it with the track and the other vehicles, and hang its wheels to the ground.
void TransformAllWheelMatrices (Vehicle *vehicle)
 Place the matrix of a vehicle, leant into its skid, and the matrices of its wheels, turned by their roll and the front ones by their steering.
void UpdateVehicleEngineAndGearbox (Vehicle *vehicle)
 Steer a vehicle by the stick, change its gears, and run its engine: its revolutions follow the front wheels in gear, and its throttle the torque at them.
void InitVehiclePhysics (Vehicle *vehicle)
 Set up the body of a vehicle and the bodies of its wheels, and their forces, for the model of its car.
void InitPlayerVehicleSlot (Vehicle *vehicle)
 Bind a vehicle to the input of its player and reset it for a race.
void InitVehicleColor (Vehicle *vehicle)
 Reset a vehicle, paint it the colour of its player, and leave it solid and undriven.
void UpdatePhysicsStep (Vehicle *vehicle)
 Drive a vehicle by the input of its player for a frame.
void RespawnVehicle (Vehicle *vehicle)
 Put a vehicle that has been upside down too long, or has fallen below the track, back on the route at its point, as a ghost that fades back in.
void ResetVehicleEffects (Vehicle *vehicle)
 Clear the smoke and the spray of the wheels of a vehicle.
void ClearVehicleDamageState (Vehicle *vehicle)
 Clear the dents of a vehicle.
void SetupVehicleForRaceStart (Vehicle *vehicle)
 Put a vehicle on the grid for the start of the race, with its model, cameras and effects reset.
void UnusedRaceStartStub (s32 unused)
 Do nothing.
void ManageAiRacerSlots (Vehicle *player)
 Move the vehicles the computer drives to the racers nearest a player, so that the racers around the player are driven in full.
void UpdateRacerSlotMotion (RacerSlot *slot)
 Move a racer for a frame: drive its vehicle, or advance it along the route of the track when it has none.

Variables

u8 g_abPlayerColorsRgb [][3]
 The color of each player's vehicle, as red, green and blue.
CarModel g_aCarModels [CAR_MODELS]
 The model and dashboard definitions of the cars the players can choose.
s32 g_dwCarCount
 The number of cars in g_aCarModels.
CarPhysicsSpec g_aCarPhysicsSpecs [CAR_MODELS]
 The handling and engine specifications of the cars the players can choose.
Vehicle g_aVehicles [MAX_VEHICLES]
 The active vehicles of a race, with players in the first slots.
f32 g_fSteerLock
 How the steering answers the stick, as the steering mode of a vehicle sets it: the lock at rest and how much of it the speed takes, in degrees, how fast the wheels turn a frame, in radians, and the angle each unit of the stick steers, in degrees.
f32 g_fSteerRate
 How quickly the steering angle changes per frame, in radians.
f32 g_fSteerGain
 How many degrees each unit of steering input turns the wheels.
f32 g_fSteerLockLoss
 How many degrees of steering lock are lost as speed increases.
s16 g_wSteerGainSpeedShare
 How much the speed halves the gain, which the modes leave at 0.

Detailed Description

The vehicles of a race, the cars they are, and their place on the track.

Macro Definition Documentation

◆ MAX_VEHICLES

#define MAX_VEHICLES   4

The number of vehicles a race can hold.

◆ VEHICLE_LAP_TIMES

#define VEHICLE_LAP_TIMES   5

The laps of a race whose times a vehicle keeps.

◆ CAR_MODELS

#define CAR_MODELS   13

The cars the players can choose.

◆ VEHICLE_MODEL_SLOTS

#define VEHICLE_MODEL_SLOTS   4

The slots the models of the cars of the menus load into.

◆ VEHICLE_GHOST

#define VEHICLE_GHOST   2

The ghost mode of a vehicle that other vehicles pass through and that fades back in.

Function Documentation

◆ UpdateVehiclePhysicsFrame()

void UpdateVehiclePhysicsFrame ( Vehicle * vehicle)

Run a frame of a vehicle: fly it, or put it on the ground, drive its wheels and step its physics.

Then place its wheels, set its speed, and update its cameras if a view follows it.

Parameters
vehicleThe vehicle.
Ghidra address:
USA: 0x8021f998
Ghidra address:
Asia: 0x8021F4E8
Ghidra address:
EUR: 0x80220c98
Ghidra address:
JPN: 0x80220488

◆ SetVehiclePosition()

void SetVehiclePosition ( Vehicle * vehicle,
f32 x,
f32 y,
f32 z )

Put a vehicle at a position, with its body and the states of its steps.

Parameters
vehicleThe vehicle.
xThe x of the position.
yThe y of the position.
zThe z of the position.
Ghidra address:
USA: 0x8021fe04
Ghidra address:
Asia: 0x8021F954
Ghidra address:
EUR: 0x80221104
Ghidra address:
JPN: 0x802208f4

◆ InitVehicleOrientationFromAngle()

void InitVehicleOrientationFromAngle ( Vehicle * vehicle,
f32 angle )

Turn a vehicle upright to face an angle about the vertical.

Parameters
vehicleThe vehicle.
angleThe angle from the x axis, in radians.
Ghidra address:
USA: 0x8021fe80
Ghidra address:
Asia: 0x8021F9D0
Ghidra address:
EUR: 0x80221180
Ghidra address:
JPN: 0x80220970

◆ SetVehicleFrameMatrix()

void SetVehicleFrameMatrix ( Vehicle * vehicle,
f32(*) m[4] )

Set the frame of a vehicle and the orientation of its body from a matrix.

Parameters
vehicleThe vehicle.
mThe matrix, whose rows are the axes and the position.
Ghidra address:
USA: 0x80220150
Ghidra address:
Asia: 0x8021FCA0
Ghidra address:
EUR: 0x80221450
Ghidra address:
JPN: 0x80220c40

◆ SetVehicleVelocity()

void SetVehicleVelocity ( Vehicle * vehicle,
f32 x,
f32 y,
f32 z )

Set the velocity of a vehicle.

Parameters
vehicleThe vehicle.
xThe x of the velocity.
yThe y of the velocity.
zThe z of the velocity.
Ghidra address:
USA: 0x802201c8
Ghidra address:
Asia: 0x8021FD18
Ghidra address:
EUR: 0x802214c8
Ghidra address:
JPN: 0x80220cb8

◆ RotateVehicleByEuler()

void RotateVehicleByEuler ( Vehicle * vehicle,
f32 yaw,
f32 pitch,
f32 roll )

Turn the body of a vehicle by angles about its vertical, sideways and forward axes, in turn.

Parameters
vehicleThe vehicle.
yawThe angle about the vertical, in radians.
pitchThe angle about the sideways axis, in radians.
rollThe angle about the forward axis, in radians.
Ghidra address:
USA: 0x8022021c
Ghidra address:
Asia: 0x8021FD6C
Ghidra address:
EUR: 0x8022151c
Ghidra address:
JPN: 0x80220d0c

◆ SetVehicleTurnRate()

void SetVehicleTurnRate ( Vehicle * vehicle,
f32 x,
f32 y,
f32 z )

Set the angular velocity of a vehicle.

Parameters
vehicleThe vehicle.
xThe angular velocity about the x axis.
yThe angular velocity about the y axis.
zThe angular velocity about the z axis.
Ghidra address:
USA: 0x80220358
Ghidra address:
Asia: 0x8021FEA8
Ghidra address:
EUR: 0x80221658
Ghidra address:
JPN: 0x80220e48

◆ InitVehicleColorAndPhysics()

void InitVehicleColorAndPhysics ( Vehicle * vehicle)

Paint the model of a vehicle its colour and set up its physics.

The Japanese release only sets up the physics.

Parameters
vehicleThe vehicle.
Ghidra address:
USA: 0x80220398
Ghidra address:
Asia: 0x8021FEE8
Ghidra address:
EUR: 0x80221698
Ghidra address:
JPN: 0x80220e88

◆ SetVehicleModelSlot()

void SetVehicleModelSlot ( Vehicle * vehicle,
s32 slot )

Give a vehicle the model of a slot.

Parameters
vehicleThe vehicle.
slotThe slot of g_aVehicleModels.
Ghidra address:
USA: 0x802203f0
Ghidra address:
Asia: 0x8021FF40
Ghidra address:
EUR: 0x802216f0
Ghidra address:
JPN: 0x80220ea8

◆ InstallVehicleModel()

void InstallVehicleModel ( Vehicle * vehicle,
s32 slot,
s32 car )

Load the model of a car into a slot and give it to a vehicle.

The Japanese release then takes the colour of the vehicle from the model.

Parameters
vehicleThe vehicle.
slotThe slot of g_aVehicleModels.
carThe index of the car in g_aCarModels.
Ghidra address:
USA: 0x80220438
Ghidra address:
Asia: 0x8021FF88
Ghidra address:
EUR: 0x80221738
Ghidra address:
JPN: 0x80220ef0

◆ InstallVehicleModelCopy()

void InstallVehicleModelCopy ( Vehicle * vehicle,
s32 slot,
s32 car )

Load the model of a car into a slot and give it to a vehicle, as InstallVehicleModel() does.

Parameters
vehicleThe vehicle.
slotThe slot of g_aVehicleModels.
carThe index of the car in g_aCarModels.
Ghidra address:
EUR: 0x80221774

◆ LoadAndActivateTrackWithPaintColor()

void LoadAndActivateTrackWithPaintColor ( Vehicle * vehicle,
s32 slot,
s32 car )

Load the model of a car into a slot, give it to a vehicle, and paint it the color of the vehicle.

Parameters
vehicleThe vehicle.
slotThe slot of g_aVehicleModels.
carThe index of the car in g_aCarModels.
Ghidra address:
JPN: 0x80220f38

◆ LoadVehicleModel()

void LoadVehicleModel ( VehicleModelLoad * load,
s32 slot,
s32 car,
s32 buffer )

Start loading the model of a car into a slot through a buffer of g_aDmaWorkBuffers.

Parameters
loadThe load, which this starts.
slotThe slot of g_aVehicleModels.
carThe index of the car in g_aCarModels.
bufferThe index of the buffer.
Ghidra address:
USA: 0x80220474
Ghidra address:
Asia: 0x8021FFC4
Ghidra address:
EUR: 0x802217b0
Ghidra address:
JPN: 0x80220fa8

◆ IsVehicleModelLoaded()

s32 IsVehicleModelLoaded ( VehicleModelLoad * load)

Whether the load of a model is done.

Parameters
loadThe load.
Returns
Whether no compressed bytes are left to read.
Ghidra address:
USA: 0x80220534
Ghidra address:
Asia: 0x80220084
Ghidra address:
EUR: 0x80221870
Ghidra address:
JPN: 0x80221068

◆ PollVehicleModelDma()

u32 PollVehicleModelDma ( VehicleModelLoad * load)

Continue the load of a model, and once it is done, record the car of its slot and fix up its pointers.

Parameters
loadThe load.
Returns
The compressed bytes left to read.
Ghidra address:
USA: 0x80220544
Ghidra address:
Asia: 0x80220094
Ghidra address:
EUR: 0x80221880
Ghidra address:
JPN: 0x80221078

◆ ResetVehicleState()

void ResetVehicleState ( Vehicle * vehicle)

Reset the frames, cameras, velocity, place on the route and gearbox of a vehicle for its car.

Parameters
vehicleThe vehicle.
Ghidra address:
USA: 0x80220620
Ghidra address:
Asia: 0x80220170
Ghidra address:
EUR: 0x8022195c
Ghidra address:
JPN: 0x80221154

◆ BindPlayerInputToVehicle()

void BindPlayerInputToVehicle ( Vehicle * vehicle)

Give a vehicle the input of the player of the same index.

Parameters
vehicleThe vehicle.
Ghidra address:
USA: 0x802207a4
Ghidra address:
Asia: 0x802202F4
Ghidra address:
EUR: 0x80221ae0
Ghidra address:
JPN: 0x802212d8

◆ IsVehicleModelValid()

s32 IsVehicleModelValid ( s32 car)

Whether the model of a car is on the cartridge.

Parameters
carThe index of the car in g_aCarModels.
Returns
Whether its model has an offset on the cartridge.
Ghidra address:
USA: 0x8021d6b8
Ghidra address:
Asia: 0x8021D208
Ghidra address:
EUR: 0x8021e8b8
Ghidra address:
JPN: 0x8021e188

◆ ChooseVehicleCar()

void ChooseVehicleCar ( Vehicle * vehicle)

Choose the car of a vehicle.

A player's vehicle takes the first car of the season in the championship and keeps its own otherwise. A computer's vehicle takes the car of the first player in the arcade; otherwise the first takes the first car of the season, and the others the lowest car of a set the season allows.

Parameters
vehicleThe vehicle.
Ghidra address:
USA: 0x80225f88
Ghidra address:
Asia: 0x80225AD8
Ghidra address:
EUR: 0x802272c8
Ghidra address:
JPN: 0x80226ab8

◆ DriveAiVehicle()

void DriveAiVehicle ( Vehicle * vehicle)

The driver of a computer's vehicle, which runs its behaviour for the frame.

Parameters
vehicleThe vehicle.
Ghidra address:
USA: 0x802288b4
Ghidra address:
Asia: 0x80228404
Ghidra address:
EUR: 0x80229c2c
Ghidra address:
JPN: 0x80229408

◆ SimulateVehiclePhysicsSubstep()

void SimulateVehiclePhysicsSubstep ( Vehicle * vehicle)

Step the physics of a vehicle on the ground for a frame: drive its wheels, push it by its springs, grip and dampers, collide it with the track and the other vehicles, and hang its wheels to the ground.

Parameters
vehicleThe vehicle.
Ghidra address:
USA: 0x80221940
Ghidra address:
Asia: 0x80221490
Ghidra address:
EUR: 0x80222c80
Ghidra address:
JPN: 0x80222470

◆ TransformAllWheelMatrices()

void TransformAllWheelMatrices ( Vehicle * vehicle)

Place the matrix of a vehicle, leant into its skid, and the matrices of its wheels, turned by their roll and the front ones by their steering.

Parameters
vehicleThe vehicle.
Ghidra address:
USA: 0x80221e0c
Ghidra address:
Asia: 0x8022195C
Ghidra address:
EUR: 0x8022314c
Ghidra address:
JPN: 0x8022293c

◆ UpdateVehicleEngineAndGearbox()

void UpdateVehicleEngineAndGearbox ( Vehicle * vehicle)

Steer a vehicle by the stick, change its gears, and run its engine: its revolutions follow the front wheels in gear, and its throttle the torque at them.

Parameters
vehicleThe vehicle.
Ghidra address:
USA: 0x80222050
Ghidra address:
Asia: 0x80221BA0
Ghidra address:
EUR: 0x80223390
Ghidra address:
JPN: 0x80222b80

◆ InitVehiclePhysics()

void InitVehiclePhysics ( Vehicle * vehicle)

Set up the body of a vehicle and the bodies of its wheels, and their forces, for the model of its car.

Parameters
vehicleThe vehicle.
Ghidra address:
USA: 0x80222d54
Ghidra address:
Asia: 0x802228A4
Ghidra address:
EUR: 0x80224094
Ghidra address:
JPN: 0x80223884

◆ InitPlayerVehicleSlot()

void InitPlayerVehicleSlot ( Vehicle * vehicle)

Bind a vehicle to the input of its player and reset it for a race.

Parameters
vehicleThe vehicle.
Ghidra address:
USA: 0x80226100
Ghidra address:
Asia: 0x80225C50
Ghidra address:
EUR: 0x80227440
Ghidra address:
JPN: 0x80226c30

◆ InitVehicleColor()

void InitVehicleColor ( Vehicle * vehicle)

Reset a vehicle, paint it the colour of its player, and leave it solid and undriven.

Parameters
vehicleThe vehicle.
Ghidra address:
USA: 0x802260a0
Ghidra address:
Asia: 0x80225BF0
Ghidra address:
EUR: 0x802273e0
Ghidra address:
JPN: 0x80226bd0

◆ UpdatePhysicsStep()

void UpdatePhysicsStep ( Vehicle * vehicle)

Drive a vehicle by the input of its player for a frame.

Parameters
vehicleThe vehicle.
Ghidra address:
USA: 0x80226d7c
Ghidra address:
Asia: 0x802268CC
Ghidra address:
EUR: 0x802280e0
Ghidra address:
JPN: 0x802278d0

◆ RespawnVehicle()

void RespawnVehicle ( Vehicle * vehicle)

Put a vehicle that has been upside down too long, or has fallen below the track, back on the route at its point, as a ghost that fades back in.

Parameters
vehicleThe vehicle.
Ghidra address:
USA: 0x80226248
Ghidra address:
Asia: 0x80225D98
Ghidra address:
EUR: 0x80227588
Ghidra address:
JPN: 0x80226d78

◆ ResetVehicleEffects()

void ResetVehicleEffects ( Vehicle * vehicle)

Clear the smoke and the spray of the wheels of a vehicle.

Parameters
vehicleThe vehicle.
Ghidra address:
USA: 0x802288d4
Ghidra address:
Asia: 0x80228424
Ghidra address:
EUR: 0x80229c4c
Ghidra address:
JPN: 0x80229428

◆ ClearVehicleDamageState()

void ClearVehicleDamageState ( Vehicle * vehicle)

Clear the dents of a vehicle.

Parameters
vehicleThe vehicle.
Ghidra address:
USA: 0x80228a3c
Ghidra address:
Asia: 0x8022858C
Ghidra address:
EUR: 0x80229db4
Ghidra address:
JPN: 0x80229590

◆ SetupVehicleForRaceStart()

void SetupVehicleForRaceStart ( Vehicle * vehicle)

Put a vehicle on the grid for the start of the race, with its model, cameras and effects reset.

Parameters
vehicleThe vehicle.
Ghidra address:
USA: 0x80228a6c
Ghidra address:
Asia: 0x802285BC
Ghidra address:
EUR: 0x80229de4
Ghidra address:
JPN: 0x802295c0

◆ UnusedRaceStartStub()

void UnusedRaceStartStub ( s32 unused)

Do nothing.

Nothing calls it.

Parameters
unusedNot read.
Ghidra address:
USA: 0x80228e44
Ghidra address:
Asia: 0x80228994
Ghidra address:
EUR: 0x8022a1bc
Ghidra address:
JPN: 0x80229998

◆ ManageAiRacerSlots()

void ManageAiRacerSlots ( Vehicle * player)

Move the vehicles the computer drives to the racers nearest a player, so that the racers around the player are driven in full.

Parameters
playerThe vehicle of the player.
Ghidra address:
USA: 0x80229700
Ghidra address:
Asia: 0x80229250
Ghidra address:
EUR: 0x8022aa78
Ghidra address:
JPN: 0x8022a230

◆ UpdateRacerSlotMotion()

void UpdateRacerSlotMotion ( RacerSlot * slot)

Move a racer for a frame: drive its vehicle, or advance it along the route of the track when it has none.

Parameters
slotThe slot of g_aRacerSlots.
Ghidra address:
USA: 0x8022c9fc
Ghidra address:
Asia: 0x8022C54C
Ghidra address:
EUR: 0x8022df0c
Ghidra address:
JPN: 0x8022d6c4

Variable Documentation

◆ g_abPlayerColorsRgb

u8 g_abPlayerColorsRgb[][3]
extern

The color of each player's vehicle, as red, green and blue.

Ghidra address:
USA: 0x8028b904
Ghidra address:
Asia: 0x8028B454
Ghidra address:
EUR: 0x8028dbb4
Ghidra address:
JPN: 0x8028d5e4

◆ g_aCarModels

CarModel g_aCarModels[CAR_MODELS]
extern

The model and dashboard definitions of the cars the players can choose.

Ghidra address:
USA: 0x8028ae0c
Ghidra address:
Asia: 0x8028A95C
Ghidra address:
EUR: 0x8028d0bc
Ghidra address:
JPN: 0x8028caec

◆ g_dwCarCount

s32 g_dwCarCount
extern

The number of cars in g_aCarModels.

Ghidra address:
USA: 0x8028ae08
Ghidra address:
Asia: 0x8028A958
Ghidra address:
EUR: 0x8028d0b8
Ghidra address:
JPN: 0x8028cae8

◆ g_aCarPhysicsSpecs

CarPhysicsSpec g_aCarPhysicsSpecs[CAR_MODELS]
extern

The handling and engine specifications of the cars the players can choose.

Ghidra address:
USA: 0x8028b330
Ghidra address:
Asia: 0x8028AE80
Ghidra address:
EUR: 0x8028d5e0
Ghidra address:
JPN: 0x8028d010

◆ g_aVehicles

Vehicle g_aVehicles[MAX_VEHICLES]
extern

The active vehicles of a race, with players in the first slots.

Ghidra address:
USA: 0x8031b760
Ghidra address:
Asia: 0x8031B210
Ghidra address:
EUR: 0x8031dc60
Ghidra address:
JPN: 0x8031c890

◆ g_fSteerLock

f32 g_fSteerLock
extern

How the steering answers the stick, as the steering mode of a vehicle sets it: the lock at rest and how much of it the speed takes, in degrees, how fast the wheels turn a frame, in radians, and the angle each unit of the stick steers, in degrees.

Ghidra address:
USA: 0x8028b720
Ghidra address:
Asia: 0x8028B270
Ghidra address:
EUR: 0x8028d9d0
Ghidra address:
JPN: 0x8028d400

◆ g_fSteerRate

f32 g_fSteerRate
extern

How quickly the steering angle changes per frame, in radians.

Ghidra address:
USA: 0x8028b724
Ghidra address:
Asia: 0x8028B274
Ghidra address:
EUR: 0x8028d9d4
Ghidra address:
JPN: 0x8028d404

◆ g_fSteerGain

f32 g_fSteerGain
extern

How many degrees each unit of steering input turns the wheels.

Ghidra address:
USA: 0x8028b728
Ghidra address:
Asia: 0x8028B278
Ghidra address:
EUR: 0x8028d9d8
Ghidra address:
JPN: 0x8028d408

◆ g_fSteerLockLoss

f32 g_fSteerLockLoss
extern

How many degrees of steering lock are lost as speed increases.

Ghidra address:
USA: 0x8028b72c
Ghidra address:
Asia: 0x8028B27C
Ghidra address:
EUR: 0x8028d9dc
Ghidra address:
JPN: 0x8028d40c

◆ g_wSteerGainSpeedShare

s16 g_wSteerGainSpeedShare
extern

How much the speed halves the gain, which the modes leave at 0.

Ghidra address:
USA: 0x8028b730
Ghidra address:
Asia: 0x8028B280
Ghidra address:
EUR: 0x8028d9e0
Ghidra address:
JPN: 0x8028d410