Settings for a configuring a Vehicle transmission.
More...
#include <Vehicle.h>
|
std::vector< float > | gears {defaultGears} |
| forward gear ratios [range: > 0] (at least one gear required)
|
|
std::vector< float > | reverseGears {-2.90f} |
| reverse gear ratios [range: < 0] (at least one gear required)
|
|
float | shiftTime = 0.5f |
| time it takes to switch gears [units: s, range: >= 0]
|
|
float | shiftLatency = 0.5f |
| delay between gear shifts [units: s, range >= 0]
|
|
float | shiftUpRPM = 4000.0f |
| rpm at which upshift occurs [range: (shiftDownRPM, VehicleEninge::maxRPM]]
|
|
float | shiftDownRPM = 2000.0f |
| rpm at which downshift occurs [range: (0, shiftUpRPM)]
|
|
float | clutchRelease = 0.3f |
| time it takes to release clutch [units: s, range >= 0]
|
|
float | clutchStrength = 10.0f |
| strength of clutch when fully engaged (higher values handle more torque but are harder to engage) [units: k m^2 s^-1, range: >= 0]
|
|
|
static constexpr auto | defaultGears = std::initializer_list<float>{ 2.66f, 1.78f, 1.3f, 1.0f, 0.74f } |
|
Settings for a configuring a Vehicle transmission.
The documentation for this struct was generated from the following file: