PxVehicleEngineData Class Reference
[Vehicle]
#include <PxVehicleComponents.h>
![Collaboration graph](classPxVehicleEngineData__coll__graph.png)
Public Types | |
enum | { eMAX_NUM_ENGINE_TORQUE_CURVE_ENTRIES = 8 } |
Public Member Functions | |
PxVehicleEngineData () | |
PX_FORCE_INLINE PxReal | getRecipMaxOmega () const |
Return value of mRecipMaxOmega(=1.0f/mMaxOmega) that is automatically set by PxVehicleDriveSimData::setEngineData. | |
Public Attributes | |
PxFixedSizeLookupTable < eMAX_NUM_ENGINE_TORQUE_CURVE_ENTRIES > | mTorqueCurve |
Graph of normalised torque (torque/maxTorque) against normalised engine revs (revs/maxRevs). | |
PxReal | mPeakTorque |
Maximum torque available to apply to the engine, specified in Nm. | |
PxReal | mMaxOmega |
Maximum rotation speed of the engine, specified in radians per second. Range: (0,inf) . | |
PxReal | mDampingRateFullThrottle |
Damping rate of engine in s^-1 when full throttle is applied. Damping rate applied at run-time is an interpolation between mDampingRateZeroThrottleClutchEngaged and mDampingRateFullThrottle if the clutch is engaged. If the clutch is disengaged (in neutral gear) the damping rate applied at run-time is an interpolation between mDampingRateZeroThrottleClutchDisengaged and mDampingRateFullThrottle. Range: (0,inf) . | |
PxReal | mDampingRateZeroThrottleClutchEngaged |
Damping rate of engine in s^-1 at zero throttle when the clutch is engaged. Damping rate applied at run-time is an interpolation between mDampingRateZeroThrottleClutchEngaged and mDampingRateFullThrottle if the clutch is engaged. If the clutch is disengaged (in neutral gear) the damping rate applied at run-time is an interpolation between mDampingRateZeroThrottleClutchDisengaged and mDampingRateFullThrottle. Range: (0,inf) . | |
PxReal | mDampingRateZeroThrottleClutchDisengaged |
Damping rate of engine in s^-1 at zero throttle when the clutch is disengaged (in neutral gear). Damping rate applied at run-time is an interpolation between mDampingRateZeroThrottleClutchEngaged and mDampingRateFullThrottle if the clutch is engaged. If the clutch is disengaged (in neutral gear) the damping rate applied at run-time is an interpolation between mDampingRateZeroThrottleClutchDisengaged and mDampingRateFullThrottle. Range: (0,inf) . | |
Private Member Functions | |
bool | isValid () const |
Private Attributes | |
PxReal | mRecipMaxOmega |
Reciprocal of the maximum rotation speed of the engine. Not necessary to set this value because it is set by PxVehicleDriveSimData::setEngineData Range: (0,inf) . | |
PxReal | mPad [2] |
Friends | |
class | PxVehicleDriveSimData |
Member Enumeration Documentation
Constructor & Destructor Documentation
PxVehicleEngineData::PxVehicleEngineData | ( | ) | [inline] |
Member Function Documentation
PX_FORCE_INLINE PxReal PxVehicleEngineData::getRecipMaxOmega | ( | ) | const [inline] |
Return value of mRecipMaxOmega(=1.0f/mMaxOmega) that is automatically set by PxVehicleDriveSimData::setEngineData.
bool PxVehicleEngineData::isValid | ( | ) | const [private] |
Friends And Related Function Documentation
friend class PxVehicleDriveSimData [friend] |
Member Data Documentation
Damping rate of engine in s^-1 when full throttle is applied. Damping rate applied at run-time is an interpolation between mDampingRateZeroThrottleClutchEngaged and mDampingRateFullThrottle if the clutch is engaged. If the clutch is disengaged (in neutral gear) the damping rate applied at run-time is an interpolation between mDampingRateZeroThrottleClutchDisengaged and mDampingRateFullThrottle. Range: (0,inf)
.
Damping rate of engine in s^-1 at zero throttle when the clutch is disengaged (in neutral gear). Damping rate applied at run-time is an interpolation between mDampingRateZeroThrottleClutchEngaged and mDampingRateFullThrottle if the clutch is engaged. If the clutch is disengaged (in neutral gear) the damping rate applied at run-time is an interpolation between mDampingRateZeroThrottleClutchDisengaged and mDampingRateFullThrottle. Range: (0,inf)
.
Damping rate of engine in s^-1 at zero throttle when the clutch is engaged. Damping rate applied at run-time is an interpolation between mDampingRateZeroThrottleClutchEngaged and mDampingRateFullThrottle if the clutch is engaged. If the clutch is disengaged (in neutral gear) the damping rate applied at run-time is an interpolation between mDampingRateZeroThrottleClutchDisengaged and mDampingRateFullThrottle. Range: (0,inf)
.
Maximum rotation speed of the engine, specified in radians per second. Range: (0,inf)
.
PxReal PxVehicleEngineData::mPad[2] [private] |
Maximum torque available to apply to the engine, specified in Nm.
Please note that to optimise the implementation the engine has a hard-coded inertia of 1kgm^2. As a consequence the magnitude of the engine's angular acceleration is exactly equal to the magnitude of the torque driving the engine. To simulate engines with different inertias (!=1kgm^2) adjust either the entries of mTorqueCurve or mPeakTorque accordingly. Range: (0,inf)
PxReal PxVehicleEngineData::mRecipMaxOmega [private] |
Reciprocal of the maximum rotation speed of the engine. Not necessary to set this value because it is set by PxVehicleDriveSimData::setEngineData Range: (0,inf)
.
PxFixedSizeLookupTable<eMAX_NUM_ENGINE_TORQUE_CURVE_ENTRIES> PxVehicleEngineData::mTorqueCurve |
Graph of normalised torque (torque/maxTorque) against normalised engine revs (revs/maxRevs).
The documentation for this class was generated from the following file:
Copyright © 2008-2012 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com