RavEngine
Loading...
Searching...
No Matches
physx::vehicle2::PxVehicleAutoboxParams Struct Reference

Public Member Functions

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

Public Attributes

PxReal upRatios [PxVehicleGearboxParams::eMAX_NB_GEARS]
 Value of ( engineRotationSpeed /maxEngineRevs ) that is high enough to increment gear.
 
PxReal downRatios [PxVehicleGearboxParams::eMAX_NB_GEARS]
 Value of engineRevs/maxEngineRevs that is low enough to decrement gear.
 
PxReal latency
 Set the latency time of the autobox.
 

Member Data Documentation

◆ downRatios

PxReal physx::vehicle2::PxVehicleAutoboxParams::downRatios[PxVehicleGearboxParams::eMAX_NB_GEARS]

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

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.

Range: [0, 1]

◆ latency

PxReal physx::vehicle2::PxVehicleAutoboxParams::latency

Set the latency time of the autobox.

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.

Range: [0, inf)
Unit: time

◆ upRatios

PxReal physx::vehicle2::PxVehicleAutoboxParams::upRatios[PxVehicleGearboxParams::eMAX_NB_GEARS]

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

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.

Range: [0, 1]


The documentation for this struct was generated from the following file: