coastline 0.0.4
Loading...
Searching...
No Matches
vehiclephysics.h File Reference
#include "common/vehicle.h"
Include dependency graph for vehiclephysics.h:

Go to the source code of this file.

Functions

void UpdatePhysicsStep (Vehicle *vehicle)
 Advance the player-controlled vehicle for one frame.
void SimulateVehiclePhysicsSubstep (Vehicle *vehicle)
 Advance spring, tyre, damping, and collision calculations for a vehicle.
void UpdateVehiclePhysicsFrame (Vehicle *vehicle)
 Drive or fly a vehicle for a frame, then update its drawing transforms and cameras.
void UpdateVehicleEngineAndGearbox (Vehicle *vehicle)
 Update steering, engine torque, and gearbox selection.
void UpdateVehicleWheelTransforms (Vehicle *vehicle)
 Update wheel heights and rebuild their rigid-body orientation matrices.
void TransformAllWheelMatrices (Vehicle *vehicle)
 Transform the body and wheel matrices for drawing.

Function Documentation

◆ UpdatePhysicsStep()

void UpdatePhysicsStep ( Vehicle * vehicle)

Advance the player-controlled vehicle for one frame.

◆ SimulateVehiclePhysicsSubstep()

void SimulateVehiclePhysicsSubstep ( Vehicle * vehicle)

Advance spring, tyre, damping, and collision calculations for a vehicle.

◆ UpdateVehiclePhysicsFrame()

void UpdateVehiclePhysicsFrame ( Vehicle * vehicle)

Drive or fly a vehicle for a frame, then update its drawing transforms and cameras.

◆ UpdateVehicleEngineAndGearbox()

void UpdateVehicleEngineAndGearbox ( Vehicle * vehicle)

Update steering, engine torque, and gearbox selection.

◆ UpdateVehicleWheelTransforms()

void UpdateVehicleWheelTransforms ( Vehicle * vehicle)

Update wheel heights and rebuild their rigid-body orientation matrices.

Parameters
vehicleThe vehicle to update.
Ghidra address:
BRD3D: 0x10061be0
Ghidra address:
BRGlide: 0x1005ac60

◆ TransformAllWheelMatrices()

void TransformAllWheelMatrices ( Vehicle * vehicle)

Transform the body and wheel matrices for drawing.