Defined in include/vehicle2/drivetrain/PxVehicleDrivetrainHelpers.h

inline PxReal PxVehicleGearRatioCompute(const PxVehicleGearboxParams &gearboxParams, const PxVehicleGearboxState &gearboxState)

Compute the gear ratio delivered by the gearbox in the current gear.


The gear ratio is the product of the gear ratio of the current gear and the final gear ratio of the gearbox.

  • gearboxParams[in] describes the gear ratio of each gear and the final ratio.

  • gearboxState[in] describes the current gear.