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

NVIDIA PhysX SDK 3.4 API

PxVehicleAutoBoxData Class Reference
[Vehicle]

#include <PxVehicleComponents.h>

List of all members.


Public Member Functions

 PxVehicleAutoBoxData ()
void setLatency (const PxReal latency)
 Set the latency time of the autobox.
PxReal getLatency () const
 Get the latency time of the autobox.
 PxVehicleAutoBoxData (const PxEMPTY)
PxReal getUpRatios (PxVehicleGearsData::Enum a) const
void setUpRatios (PxVehicleGearsData::Enum a, PxReal ratio)
PxReal getDownRatios (PxVehicleGearsData::Enum a) const
void setDownRatios (PxVehicleGearsData::Enum a, PxReal ratio)

Public Attributes

PxReal mUpRatios [PxVehicleGearsData::eGEARSRATIO_COUNT]
 Value of ( engineRotationSpeed / PxVehicleEngineData::mMaxOmega ) that is high enough to increment gear.
PxReal mDownRatios [PxVehicleGearsData::eGEARSRATIO_COUNT]
 Value of engineRevs/maxEngineRevs that is low enough to decrement gear.

Private Member Functions

bool isValid () const

Friends

class PxVehicleDriveSimData

Constructor & Destructor Documentation

PxVehicleAutoBoxData::PxVehicleAutoBoxData (  )  [inline]

PxVehicleAutoBoxData::PxVehicleAutoBoxData ( const   PxEMPTY  )  [inline]


Member Function Documentation

PxReal PxVehicleAutoBoxData::getDownRatios ( PxVehicleGearsData::Enum  a  )  const [inline]

PxReal PxVehicleAutoBoxData::getLatency (  )  const [inline]

Get the latency time of the autobox.

Note:
Specified in seconds (s).
See also:
setLatency

References PxVehicleGearsData::eREVERSE.

PxReal PxVehicleAutoBoxData::getUpRatios ( PxVehicleGearsData::Enum  a  )  const [inline]

bool PxVehicleAutoBoxData::isValid (  )  const [private]

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

void PxVehicleAutoBoxData::setLatency ( const PxReal  latency  )  [inline]

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.

Specified in seconds (s).

See also:
getLatency

References PxVehicleGearsData::eREVERSE.

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


Friends And Related Function Documentation

friend class PxVehicleDriveSimData [friend]


Member Data Documentation

PxReal PxVehicleAutoBoxData::mDownRatios[PxVehicleGearsData::eGEARSRATIO_COUNT]

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

Note:
When ( engineRotationSpeed / PxVehicleEngineData::mMaxOmega ) < mDownRatios[currentGear] the autobox will begin a transition to currentGear-1 unless currentGear is first gear or neutral or reverse.
Range: [0, 1]

PxReal PxVehicleAutoBoxData::mUpRatios[PxVehicleGearsData::eGEARSRATIO_COUNT]

Value of ( engineRotationSpeed / PxVehicleEngineData::mMaxOmega ) that is high enough to increment gear.

Note:
When ( engineRotationSpeed / PxVehicleEngineData::mMaxOmega ) > mUpRatios[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 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