PxVehicleGearsData Class Reference

#include <PxVehicleComponents.h>

Public Types

enum  Enum {
  eREVERSE =0, eNEUTRAL, eFIRST, eSECOND,
  eTHIRD, eFOURTH, eFIFTH, eSIXTH,
  eSEVENTH, eEIGHTH, eNINTH, eTENTH,
  eELEVENTH, eTWELFTH, eTHIRTEENTH, eFOURTEENTH,
  eFIFTEENTH, eSIXTEENTH, eSEVENTEENTH, eEIGHTEENTH,
  eNINETEENTH, eTWENTIETH, eTWENTYFIRST, eTWENTYSECOND,
  eTWENTYTHIRD, eTWENTYFOURTH, eTWENTYFIFTH, eTWENTYSIXTH,
  eTWENTYSEVENTH, eTWENTYEIGHTH, eTWENTYNINTH, eTHIRTIETH,
  eGEARSRATIO_COUNT
}
 

Public Member Functions

 PxVehicleGearsData ()
 
 PxVehicleGearsData (const PxEMPTY)
 
PxReal getGearRatio (PxVehicleGearsData::Enum a) const
 
void setGearRatio (PxVehicleGearsData::Enum a, PxReal ratio)
 

Public Attributes

PxReal mRatios [PxVehicleGearsData::eGEARSRATIO_COUNT]
 Gear ratios. More...
 
PxReal mFinalRatio
 Gear ratio applied is mRatios[currentGear]*finalRatio. More...
 
PxU32 mNbRatios
 Number of gears (including reverse and neutral). More...
 
PxReal mSwitchTime
 Time it takes to switch gear. More...
 

Private Member Functions

bool isValid () const
 

Private Attributes

PxReal mPad
 

Friends

class PxVehicleDriveSimData
 

Member Enumeration Documentation

◆ Enum

Enumerator
eREVERSE 
eNEUTRAL 
eFIRST 
eSECOND 
eTHIRD 
eFOURTH 
eFIFTH 
eSIXTH 
eSEVENTH 
eEIGHTH 
eNINTH 
eTENTH 
eELEVENTH 
eTWELFTH 
eTHIRTEENTH 
eFOURTEENTH 
eFIFTEENTH 
eSIXTEENTH 
eSEVENTEENTH 
eEIGHTEENTH 
eNINETEENTH 
eTWENTIETH 
eTWENTYFIRST 
eTWENTYSECOND 
eTWENTYTHIRD 
eTWENTYFOURTH 
eTWENTYFIFTH 
eTWENTYSIXTH 
eTWENTYSEVENTH 
eTWENTYEIGHTH 
eTWENTYNINTH 
eTHIRTIETH 
eGEARSRATIO_COUNT 

Constructor & Destructor Documentation

◆ PxVehicleGearsData() [1/2]

PxVehicleGearsData::PxVehicleGearsData ( )
inline

◆ PxVehicleGearsData() [2/2]

PxVehicleGearsData::PxVehicleGearsData ( const PxEMPTY  )
inline

Member Function Documentation

◆ getGearRatio()

PxReal PxVehicleGearsData::getGearRatio ( PxVehicleGearsData::Enum  a) const
inline

◆ isValid()

bool PxVehicleGearsData::isValid ( ) const
private

◆ setGearRatio()

void PxVehicleGearsData::setGearRatio ( PxVehicleGearsData::Enum  a,
PxReal  ratio 
)
inline

Friends And Related Function Documentation

◆ PxVehicleDriveSimData

friend class PxVehicleDriveSimData
friend

Member Data Documentation

◆ mFinalRatio

PxReal PxVehicleGearsData::mFinalRatio

Gear ratio applied is mRatios[currentGear]*finalRatio.

Range: [0, PX_MAX_F32)

◆ mNbRatios

PxU32 PxVehicleGearsData::mNbRatios

Number of gears (including reverse and neutral).

Range: (0, MAX_NB_GEAR_RATIOS)

◆ mPad

PxReal PxVehicleGearsData::mPad
private

◆ mRatios

PxReal PxVehicleGearsData::mRatios[PxVehicleGearsData::eGEARSRATIO_COUNT]

Gear ratios.

Range: [0, PX_MAX_F32)

◆ mSwitchTime

PxReal PxVehicleGearsData::mSwitchTime

Time it takes to switch gear.

Note
Specified in seconds (s).

Range: [0, PX_MAX_F32)


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