PxVehicleGearboxParams
Defined in include/vehicle2/drivetrain/PxVehicleDrivetrainParams.h
-
struct PxVehicleGearboxParams
Public Types
Public Functions
-
inline PxVehicleGearboxParams transformAndScale(const PxVehicleFrame &srcFrame, const PxVehicleFrame &trgFrame, const PxVehicleScale &srcScale, const PxVehicleScale &trgScale) const
-
inline bool isValid() const
Public Members
-
PxReal ratios[eMAX_NB_GEARS]
Gear ratios.
The ratio for reverse gears must be negative, the ratio for the neutral gear has to be 0 and the ratio for forward gears must be positive.
-
PxReal finalRatio
Gear ratio applied is ratios[currentGear]*finalRatio.
Range: (0, inf)
-
inline PxVehicleGearboxParams transformAndScale(const PxVehicleFrame &srcFrame, const PxVehicleFrame &trgFrame, const PxVehicleScale &srcScale, const PxVehicleScale &trgScale) const