Data structure with instanced dynamics data for vehicle with engine, clutch, gears, autobox.  
 More...
#include <PxVehicleDrive.h>
Data structure with instanced dynamics data for vehicle with engine, clutch, gears, autobox. 
- See also
 - PxVehicleWheelsDynData for wheels dynamics data. 
 
 
◆ anonymous enum
| Enumerator | 
|---|
| eMAX_NB_ANALOG_INPUTS  |  | 
 
 
◆ PxVehicleDriveDynData() [1/2]
      
        
          | PxVehicleDriveDynData::PxVehicleDriveDynData  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ PxVehicleDriveDynData() [2/2]
  
  
      
        
          | PxVehicleDriveDynData::PxVehicleDriveDynData  | 
          ( | 
          const PxEMPTY  | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ forceGearChange()
Force an immediate gear change to a target gear. 
- Parameters
 - 
  
    | [in] | targetGear | is the gear the vehicle will be given immediately. | 
  
   
- See also
 - PxVehicleGearsData 
 
 
 
◆ getAnalogInput()
      
        
          | PxReal PxVehicleDriveDynData::getAnalogInput  | 
          ( | 
          const PxU32  | 
          type | ) | 
           const | 
        
      
 
 
◆ getAutoBoxSwitchTime()
  
  
      
        
          | PX_FORCE_INLINE PxReal PxVehicleDriveDynData::getAutoBoxSwitchTime  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getCurrentGear()
◆ getEngineRotationSpeed()
  
  
      
        
          | PX_FORCE_INLINE PxReal PxVehicleDriveDynData::getEngineRotationSpeed  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Return the rotation speed of the engine (radians per second) 
- Returns
 - The rotational speed (radians per second) of the engine. 
 
 
 
◆ getGearChange()
◆ getGearDown()
  
  
      
        
          | bool PxVehicleDriveDynData::getGearDown  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Check if the gear-down button has been pressed. 
- Returns
 - The state of the gear-down button. 
 
 
 
◆ getGearSwitchTime()
Return the time that has passed since the current gear change was initiated. 
- Returns
 - The time that has passed since the current gear change was initiated.
 
- Note
 - If no gear change is in process the gear switch time will be zero.
 
- See also
 - PxVehicleGearsData.mSwitchTime 
 
 
 
◆ getGearUp()
  
  
      
        
          | bool PxVehicleDriveDynData::getGearUp  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Check if the gear-up button has been pressed. 
- Returns
 - The state of the gear-up button. 
 
 
 
◆ getNbAnalogInput()
  
  
      
        
          | PxU32 PxVehicleDriveDynData::getNbAnalogInput  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getTargetGear()
◆ getUseAutoGears()
Get the flag status that is used to select auto-gears. 
- Returns
 - The active status of the auto-box. 
 
 
 
◆ isValid()
  
  
      
        
          | bool PxVehicleDriveDynData::isValid  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
 
◆ setAnalogInput()
      
        
          | void PxVehicleDriveDynData::setAnalogInput  | 
          ( | 
          const PxU32  | 
          type,  | 
        
        
           | 
           | 
          const PxReal  | 
          analogVal  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ setAutoBoxSwitchTime()
  
  
      
        
          | PX_FORCE_INLINE void PxVehicleDriveDynData::setAutoBoxSwitchTime  | 
          ( | 
          const PxReal  | 
          autoBoxSwitchTime | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setCurrentGear()
Set the current gear. 
- Parameters
 - 
  
    | [in] | currentGear | is the vehicle's gear. | 
  
   
- Note
 - If the target gear is different from the current gear the vehicle will attempt to start a gear change from the current gear that has just been set towards the target gear at the next call to PxVehicleUpdates.
 
- See also
 - setTargetGear, PxVehicleGearsData 
 
 
 
◆ setEngineRotationSpeed()
  
  
      
        
          | PX_FORCE_INLINE void PxVehicleDriveDynData::setEngineRotationSpeed  | 
          ( | 
          const PxF32  | 
          speed | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set the rotation speed of the engine (radians per second) 
- Parameters
 - 
  
    | [in] | speed | is the rotational speed (radians per second) to apply to the engine.  | 
  
   
 
 
◆ setGearChange()
◆ setGearDown()
  
  
      
        
          | void PxVehicleDriveDynData::setGearDown  | 
          ( | 
          const bool  | 
          digitalVal | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set that the gear-down button has been pressed. 
- Parameters
 - 
  
    | [in] | digitalVal | is the state of the gear-down button. | 
  
   
- Note
 - If digitalVal is true the vehicle will attempt to initiate a gear change at the next call to PxVehicleUpdates.
 
- 
The value of mGearDownPressed is not reset by PxVehicleUpdates 
 
 
 
◆ setGearSwitchTime()
  
  
      
        
          | PX_FORCE_INLINE void PxVehicleDriveDynData::setGearSwitchTime  | 
          ( | 
          const PxReal  | 
          switchTime | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setGearUp()
  
  
      
        
          | void PxVehicleDriveDynData::setGearUp  | 
          ( | 
          const bool  | 
          digitalVal | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Inform the vehicle that the gear-up button has been pressed. 
- Parameters
 - 
  
    | [in] | digitalVal | is the state of the gear-up button. | 
  
   
- Note
 - If digitalVal is true the vehicle will attempt to initiate a gear change at the next call to PxVehicleUpdates.
 
- 
The value of mGearUpPressed is not reset by PxVehicleUpdates 
 
 
 
◆ setTargetGear()
Set the target gear. 
- Parameters
 - 
  
    | [in] | targetGear | is the vehicle's target gear. | 
  
   
- Note
 - If the target gear is different from the current gear the vehicle will attempt to start a gear change towards the target gear at the next call to PxVehicleUpdates.
 
- See also
 - PxVehicleGearsData 
 
 
 
◆ setToRestState()
      
        
          | void PxVehicleDriveDynData::setToRestState  | 
          ( | 
           | ) | 
           | 
        
      
 
Set all dynamics data to zero to bring the vehicle to rest. 
 
 
◆ setUseAutoGears()
  
  
      
        
          | PX_FORCE_INLINE void PxVehicleDriveDynData::setUseAutoGears  | 
          ( | 
          const bool  | 
          useAutoGears | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set the flag that will be used to select auto-gears If useAutoGears is true the auto-box will be active. 
- Parameters
 - 
  
    | [in] | useAutoGears | is the active state of the auto-box.  | 
  
   
 
 
◆ startGearChange()
Start a gear change to a target gear. 
- Parameters
 - 
  
    | [in] | targetGear | is the gear the vehicle will begin a transition towards. | 
  
   
- Note
 - The gear change will begin at the next call to PxVehicleUpadates.
 
- See also
 - PxVehicleGearsData 
 
 
 
◆ toggleAutoGears()
Toggle the auto-gears flag If useAutoGears is true the auto-box will be active. 
 
 
◆ PxVehicleDrive
◆ mAutoBoxSwitchTime
      
        
          | PxReal PxVehicleDriveDynData::mAutoBoxSwitchTime | 
        
      
 
 
◆ mControlAnalogVals
◆ mCurrentGear
      
        
          | PxU32 PxVehicleDriveDynData::mCurrentGear | 
        
      
 
 
◆ mEnginespeed
      
        
          | PxReal PxVehicleDriveDynData::mEnginespeed | 
        
      
 
 
◆ mGearDownPressed
      
        
          | bool PxVehicleDriveDynData::mGearDownPressed | 
        
      
 
Gear-down digital control value used by vehicle simulation. 
- Note
 - If true a gear change will be initiated towards currentGear-1 (or to reverse if in first).
 
- See also
 - setDigitalInput, getDigitalInput 
 
 
 
◆ mGearSwitchTime
      
        
          | PxReal PxVehicleDriveDynData::mGearSwitchTime | 
        
      
 
 
◆ mGearUpPressed
      
        
          | bool PxVehicleDriveDynData::mGearUpPressed | 
        
      
 
Gear-up digital control value used by vehicle simulation. 
- Note
 - If true a gear change will be initiated towards currentGear+1 (or to first gear if in reverse).
 
- See also
 - setDigitalInput, getDigitalInput 
 
 
 
◆ mPad
  
  
      
        
          | PxU32 PxVehicleDriveDynData::mPad[2] | 
         
       
   | 
  
private   | 
  
 
 
◆ mTargetGear
      
        
          | PxU32 PxVehicleDriveDynData::mTargetGear | 
        
      
 
 
◆ mUseAutoGears
      
        
          | bool PxVehicleDriveDynData::mUseAutoGears | 
        
      
 
 
The documentation for this class was generated from the following file: