PxVehicleAutoboxParams

Defined in include/vehicle2/drivetrain/PxVehicleDrivetrainParams.h

struct PxVehicleAutoboxParams

Public Functions

inline PxVehicleAutoboxParams transformAndScale(const PxVehicleFrame &srcFrame, const PxVehicleFrame &trgFrame, const PxVehicleScale &srcScale, const PxVehicleScale &trgScale) const
inline bool isValid(const PxVehicleGearboxParams &gearboxParams) const

Public Members

PxReal upRatios[PxVehicleGearboxParams::eMAX_NB_GEARS]

Value of ( engineRotationSpeed /maxEngineRevs ) that is high enough to increment gear.

Range: [0, 1]

Note

When ( engineRotationSpeed / PxVehicleEngineParams::maxOmega ) > upRatios[currentGear] the autobox will begin a transition to currentGear+1 unless currentGear is the highest possible gear or neutral or reverse.

PxReal downRatios[PxVehicleGearboxParams::eMAX_NB_GEARS]

Value of engineRevs/maxEngineRevs that is low enough to decrement gear.

Range: [0, 1]

Note

When ( engineRotationSpeed / PxVehicleEngineParams::maxOmega) < downRatios[currentGear] the autobox will begin a transition to currentGear-1 unless currentGear is first gear or neutral or reverse.

PxReal latency

Set the latency time of the autobox.

Range: [0, inf)Unit: time

Note

Latency time is the minimum time that must pass between each gear change that is initiated by the autobox. The auto-box will only attempt to initiate another gear change up or down if the simulation time that has passed since the most recent automated gear change is greater than the specified latency.