#include <PxVehicleComponents.h>
Public Types | |
enum | { eMAX_NB_ENGINE_TORQUE_CURVE_ENTRIES = 8 } |
Public Member Functions | |
PxVehicleEngineData () | |
PX_FORCE_INLINE PxReal | getRecipMOI () const |
Return value of mRecipMOI(=1.0f/mMOI) that is automatically set by PxVehicleDriveSimData::setEngineData. | |
PX_FORCE_INLINE PxReal | getRecipMaxOmega () const |
Return value of mRecipMaxOmega( = 1.0f / mMaxOmega ) that is automatically set by PxVehicleDriveSimData::setEngineData. | |
PxVehicleEngineData (const PxEMPTY) | |
Public Attributes | |
PxFixedSizeLookupTable < eMAX_NB_ENGINE_TORQUE_CURVE_ENTRIES > | mTorqueCurve |
Graph of normalized torque (torque/mPeakTorque) against normalized engine speed ( engineRotationSpeed / mMaxOmega ). | |
PxReal | mMOI |
Moment of inertia of the engine around the axis of rotation. | |
PxReal | mPeakTorque |
Maximum torque available to apply to the engine when the accelerator pedal is at maximum. | |
PxReal | mMaxOmega |
Maximum rotation speed of the engine. | |
PxReal | mDampingRateFullThrottle |
Damping rate of engine when full throttle is applied. | |
PxReal | mDampingRateZeroThrottleClutchEngaged |
Damping rate of engine when full throttle is applied. | |
PxReal | mDampingRateZeroThrottleClutchDisengaged |
Damping rate of engine when full throttle is applied. | |
Private Member Functions | |
bool | isValid () const |
Private Attributes | |
PxReal | mRecipMOI |
Reciprocal of the engine moment of inertia. | |
PxReal | mRecipMaxOmega |
Reciprocal of the maximum rotation speed of the engine. | |
Friends | |
class | PxVehicleDriveSimData |
PxVehicleEngineData::PxVehicleEngineData | ( | ) | [inline] |
PxVehicleEngineData::PxVehicleEngineData | ( | const | PxEMPTY | ) | [inline] |
PX_FORCE_INLINE PxReal PxVehicleEngineData::getRecipMaxOmega | ( | ) | const [inline] |
Return value of mRecipMaxOmega( = 1.0f / mMaxOmega ) that is automatically set by PxVehicleDriveSimData::setEngineData.
PX_FORCE_INLINE PxReal PxVehicleEngineData::getRecipMOI | ( | ) | const [inline] |
Return value of mRecipMOI(=1.0f/mMOI) that is automatically set by PxVehicleDriveSimData::setEngineData.
bool PxVehicleEngineData::isValid | ( | ) | const [private] |
friend class PxVehicleDriveSimData [friend] |
Damping rate of engine when full throttle is applied.
If the clutch is disengaged (in neutral gear) the damping rate applied at run-time is an interpolation between mDampingRateZeroThrottleClutchDisengaged and mDampingRateFullThrottle: mDampingRateZeroThrottleClutchDisengaged + (mDampingRateFullThrottle-mDampingRateZeroThrottleClutchDisengaged)*acceleratorPedal;
Specified in kilograms metres-squared per second (kg m^2 s^-1).
Damping rate of engine when full throttle is applied.
If the clutch is disengaged (in neutral gear) the damping rate applied at run-time is an interpolation between mDampingRateZeroThrottleClutchDisengaged and mDampingRateFullThrottle: mDampingRateZeroThrottleClutchDisengaged + (mDampingRateFullThrottle-mDampingRateZeroThrottleClutchDisengaged)*acceleratorPedal;
Specified in kilograms metres-squared per second (kg m^2 s^-1).
Damping rate of engine when full throttle is applied.
If the clutch is disengaged (in neutral gear) the damping rate applied at run-time is an interpolation between mDampingRateZeroThrottleClutchDisengaged and mDampingRateFullThrottle: mDampingRateZeroThrottleClutchDisengaged + (mDampingRateFullThrottle-mDampingRateZeroThrottleClutchDisengaged)*acceleratorPedal;
Specified in kilograms metres-squared per second (kg m^2 s^-1).
Maximum rotation speed of the engine.
PxReal PxVehicleEngineData::mMOI |
Moment of inertia of the engine around the axis of rotation.
Maximum torque available to apply to the engine when the accelerator pedal is at maximum.
Specified in kilograms metres-squared per second-squared (kg m^2 s^-2).
PxReal PxVehicleEngineData::mRecipMaxOmega [private] |
Reciprocal of the maximum rotation speed of the engine.
PxReal PxVehicleEngineData::mRecipMOI [private] |
Reciprocal of the engine moment of inertia.
PxFixedSizeLookupTable<eMAX_NB_ENGINE_TORQUE_CURVE_ENTRIES> PxVehicleEngineData::mTorqueCurve |
Graph of normalized torque (torque/mPeakTorque) against normalized engine speed ( engineRotationSpeed / mMaxOmega ).