NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxVehicleGearsData Class Reference

NVIDIA PhysX SDK 3.4 API

PxVehicleGearsData Class Reference
[Vehicle]

#include <PxVehicleComponents.h>

List of all members.


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.
PxReal mFinalRatio
 Gear ratio applied is mRatios[currentGear]*finalRatio.
PxU32 mNbRatios
 Number of gears (including reverse and neutral).
PxReal mSwitchTime
 Time it takes to switch gear.

Private Member Functions

bool isValid () const

Private Attributes

PxReal mPad

Friends

class PxVehicleDriveSimData

Member Enumeration Documentation

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::PxVehicleGearsData (  )  [inline]

PxVehicleGearsData::PxVehicleGearsData ( const   PxEMPTY  )  [inline]


Member Function Documentation

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

bool PxVehicleGearsData::isValid (  )  const [private]

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


Friends And Related Function Documentation

friend class PxVehicleDriveSimData [friend]


Member Data Documentation

Gear ratio applied is mRatios[currentGear]*finalRatio.

Range: [0, PX_MAX_F32)

Number of gears (including reverse and neutral).

Range: (0, MAX_NB_GEAR_RATIOS)

PxReal PxVehicleGearsData::mPad [private]

PxReal PxVehicleGearsData::mRatios[PxVehicleGearsData::eGEARSRATIO_COUNT]

Gear ratios.

Range: [0, PX_MAX_F32)

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:



Copyright © 2008-2017 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com