RavEngine
Loading...
Searching...
No Matches
physx::vehicle2::PxVehicleEngineParams Struct Reference
Collaboration diagram for physx::vehicle2::PxVehicleEngineParams:
[legend]

Public Types

enum  { eMAX_NB_ENGINE_TORQUE_CURVE_ENTRIES = 8 }
 Maximum supported number of points in the torqueCurve graph.
 

Public Member Functions

PX_FORCE_INLINE PxVehicleEngineParams transformAndScale (const PxVehicleFrame &srcFrame, const PxVehicleFrame &trgFrame, const PxVehicleScale &srcScale, const PxVehicleScale &trgScale) const
 
PX_FORCE_INLINE bool isValid () const
 

Public Attributes

PxVehicleFixedSizeLookupTable< PxReal, eMAX_NB_ENGINE_TORQUE_CURVE_ENTRIES > torqueCurve
 Graph of normalized torque (torque/peakTorque) against normalized engine speed ( engineRotationSpeed / maxOmega ).
 
PxReal moi
 Moment of inertia of the engine around the axis of rotation.
 
PxReal peakTorque
 Maximum torque available to apply to the engine when the accelerator pedal is at maximum.
 
PxReal idleOmega
 Minimum rotation speed of the engine.
 
PxReal maxOmega
 Maximum rotation speed of the engine.
 
PxReal dampingRateFullThrottle
 Damping rate of engine when full throttle is applied.
 
PxReal dampingRateZeroThrottleClutchEngaged
 Damping rate of engine when no throttle is applied and with engaged clutch.
 
PxReal dampingRateZeroThrottleClutchDisengaged
 Damping rate of engine when no throttle is applied and with disengaged clutch.
 

Member Data Documentation

◆ dampingRateFullThrottle

PxReal physx::vehicle2::PxVehicleEngineParams::dampingRateFullThrottle

Damping rate of engine when full throttle is applied.

Note
If the clutch is engaged (any gear except neutral) then the damping rate applied at run-time is an interpolation between dampingRateZeroThrottleClutchEngaged and dampingRateFullThrottle: dampingRateZeroThrottleClutchEngaged + (dampingRateFullThrottle-dampingRateZeroThrottleClutchEngaged)*acceleratorPedal;
If the clutch is disengaged (in neutral gear) the damping rate applied at run-time is an interpolation between dampingRateZeroThrottleClutchDisengaged and dampingRateFullThrottle: dampingRateZeroThrottleClutchDisengaged + (dampingRateFullThrottle-dampingRateZeroThrottleClutchDisengaged)*acceleratorPedal;

Range: [0, inf)
Unit: torque * time = mass * (length^2) / time

◆ dampingRateZeroThrottleClutchDisengaged

PxReal physx::vehicle2::PxVehicleEngineParams::dampingRateZeroThrottleClutchDisengaged

Damping rate of engine when no throttle is applied and with disengaged clutch.

Note
If the clutch is engaged (any gear except neutral) then the damping rate applied at run-time is an interpolation between dampingRateZeroThrottleClutchEngaged and dampingRateFullThrottle: dampingRateZeroThrottleClutchEngaged + (dampingRateFullThrottle-dampingRateZeroThrottleClutchEngaged)*acceleratorPedal;
If the clutch is disengaged (in neutral gear) the damping rate applied at run-time is an interpolation between dampingRateZeroThrottleClutchDisengaged and dampingRateFullThrottle: dampingRateZeroThrottleClutchDisengaged + (dampingRateFullThrottle-dampingRateZeroThrottleClutchDisengaged)*acceleratorPedal;

Range: [0, inf)
Unit: torque * time = mass * (length^2) / time

◆ dampingRateZeroThrottleClutchEngaged

PxReal physx::vehicle2::PxVehicleEngineParams::dampingRateZeroThrottleClutchEngaged

Damping rate of engine when no throttle is applied and with engaged clutch.

Note
If the clutch is engaged (any gear except neutral) then the damping rate applied at run-time is an interpolation between dampingRateZeroThrottleClutchEngaged and dampingRateFullThrottle: dampingRateZeroThrottleClutchEngaged + (dampingRateFullThrottle-dampingRateZeroThrottleClutchEngaged)*acceleratorPedal;
If the clutch is disengaged (in neutral gear) the damping rate applied at run-time is an interpolation between dampingRateZeroThrottleClutchDisengaged and dampingRateFullThrottle: dampingRateZeroThrottleClutchDisengaged + (dampingRateFullThrottle-dampingRateZeroThrottleClutchDisengaged)*acceleratorPedal;

Range: [0, inf)
Unit: torque * time = mass * (length^2) / time

◆ idleOmega

PxReal physx::vehicle2::PxVehicleEngineParams::idleOmega

Minimum rotation speed of the engine.

Range: [0, inf)
Unit: radians / time

◆ maxOmega

PxReal physx::vehicle2::PxVehicleEngineParams::maxOmega

Maximum rotation speed of the engine.

Range: [0, inf)
Unit: radians / time

◆ moi

PxReal physx::vehicle2::PxVehicleEngineParams::moi

Moment of inertia of the engine around the axis of rotation.

Range: (0, inf)
Unit: mass * (length^2)

◆ peakTorque

PxReal physx::vehicle2::PxVehicleEngineParams::peakTorque

Maximum torque available to apply to the engine when the accelerator pedal is at maximum.

Note
The torque available is the value of the accelerator pedal (in range [0, 1]) multiplied by the normalized torque as computed from torqueCurve multiplied by peakTorque.

Range: [0, inf)
Unit: mass * (length^2) / (time^2)

◆ torqueCurve

PxVehicleFixedSizeLookupTable<PxReal, eMAX_NB_ENGINE_TORQUE_CURVE_ENTRIES> physx::vehicle2::PxVehicleEngineParams::torqueCurve

Graph of normalized torque (torque/peakTorque) against normalized engine speed ( engineRotationSpeed / maxOmega ).

Note
The normalized engine speed is the x-axis of the graph, while the normalized torque is the y-axis of the graph.

The documentation for this struct was generated from the following file: