|
RavEngine
|
Public Types | |
| enum | Enum { eMAX_NB_GEARS = 32 } |
| Maximum supported number of gears, including reverse and neutral. | |
Public Member Functions | |
| PX_FORCE_INLINE PxVehicleGearboxParams | transformAndScale (const PxVehicleFrame &srcFrame, const PxVehicleFrame &trgFrame, const PxVehicleScale &srcScale, const PxVehicleScale &trgScale) const |
| PX_FORCE_INLINE bool | isValid () const |
Public Attributes | |
| PxU32 | neutralGear |
| The gear that denotes neutral gear. | |
| PxReal | ratios [eMAX_NB_GEARS] |
| Gear ratios. | |
| PxReal | finalRatio |
| Gear ratio applied is ratios[currentGear]*finalRatio. | |
| PxU32 | nbRatios |
| Number of gears (including reverse and neutral). | |
| PxReal | switchTime |
| Time it takes to switch gear. | |
| PxReal physx::vehicle2::PxVehicleGearboxParams::finalRatio |
Gear ratio applied is ratios[currentGear]*finalRatio.
Range: (0, inf)
| PxU32 physx::vehicle2::PxVehicleGearboxParams::nbRatios |
Number of gears (including reverse and neutral).
Range: [1, eMAX_NB_GEARS]
| PxReal physx::vehicle2::PxVehicleGearboxParams::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 physx::vehicle2::PxVehicleGearboxParams::switchTime |
Time it takes to switch gear.
Range: [0, inf)
Unit: time