coastline 0.0.4
Loading...
Searching...
No Matches
CarPhysicsSpec Struct Reference

The physics of a car. More...

#include <carphysics.h>

Collaboration diagram for CarPhysicsSpec:

Public Attributes

f32 gearRatios [CAR_GEAR_RATIOS]
f32 torqueCurve [4]
f32 finalDrive
s32 gearCount
s32 rearWheelDrive
Vec3f boxSize
f32 boxCenterZ
s32 tableIndex

Detailed Description

The physics of a car.

Member Data Documentation

◆ gearRatios

f32 CarPhysicsSpec::gearRatios[CAR_GEAR_RATIOS]

The ratio of each gear, from 0 for neutral.

◆ torqueCurve

f32 CarPhysicsSpec::torqueCurve[4]

The torque of the engine as a cubic of its revolutions, the highest power first.

◆ finalDrive

f32 CarPhysicsSpec::finalDrive

The ratio of the final drive.

◆ gearCount

s32 CarPhysicsSpec::gearCount

The number of forward gears.

◆ rearWheelDrive

s32 CarPhysicsSpec::rearWheelDrive

Whether the throttle drives the rear wheels alone, rather than all four.

◆ boxSize

Vec3f CarPhysicsSpec::boxSize

The size of the box the track collides with.

◆ boxCenterZ

f32 CarPhysicsSpec::boxCenterZ

The height of the middle of the box.

◆ tableIndex

s32 CarPhysicsSpec::tableIndex

The class of the car among the arcade times of each track.


The documentation for this struct was generated from the following file: