9#if VEHICLE_DEBUGGING_ENABLED
32 , EngineBrakeEffect(0.2f)
33 , EngineRevUpMOI(1.0f)
34 , EngineRevDownRate(1.0f)
69 EngineStarted =
false;
103 return ThrottlePosition * GetTorqueFromRPM();
116 return GetTorqueFromRPM(CurrentRPM);
120 float GetTorqueFromRPM(
float RPM,
bool LimitToIdle =
true);
149 void Simulate(
float DeltaTime);
170#if VEHICLE_DEBUGGING_ENABLED
#define UE_ENABLE_OPTIMIZATION
Definition CoreMiscDefines.h:60
#define UE_DISABLE_OPTIMIZATION
Definition CoreMiscDefines.h:59
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition VehicleUtility.h:54
Definition EngineSystem.h:53
float DriveTorque
Definition EngineSystem.h:156
void SetEngineRPM(bool FreeRunningIn, float InEngineRPM)
Definition EngineSystem.h:85
float EngineIdleSpeed
Definition EngineSystem.h:158
float TargetSpeed
Definition EngineSystem.h:154
float ThrottlePosition
Definition EngineSystem.h:153
void SetEngineOmega(const float EngineOmega)
Definition EngineSystem.h:141
void StartEngine()
Definition EngineSystem.h:59
void StopEngine()
Definition EngineSystem.h:67
bool FreeRunning
Definition EngineSystem.h:161
float Omega
Definition EngineSystem.h:163
bool EngineStarted
Definition EngineSystem.h:160
float GetEngineRPM() const
Definition EngineSystem.h:124
float RevRate
Definition EngineSystem.h:164
float GetEngineRevRate()
Definition EngineSystem.h:109
float GetTorqueFromRPM(bool LimitToIdle=true)
Definition EngineSystem.h:114
float CurrentRPM
Definition EngineSystem.h:155
float GetEngineTorque()
Definition EngineSystem.h:99
float MaxTorque
Definition EngineSystem.h:152
void SetThrottle(float InThrottle)
Definition EngineSystem.h:75
void SetMaxTorque(float InTorque)
Definition EngineSystem.h:94
float GetEngineOmega() const
Definition EngineSystem.h:135
float MaxEngineSpeed
Definition EngineSystem.h:159
Definition VehicleSystemTemplate.h:13
Definition SkeletalMeshComponent.h:307
FORCEINLINE float RPMToOmega(float RPM)
Definition VehicleUtility.h:175
Definition EngineSystem.h:27
float EngineRevDownRate
Definition EngineSystem.h:48
uint16 MaxRPM
Definition EngineSystem.h:43
FSimpleEngineConfig()
Definition EngineSystem.h:28
float MaxTorque
Definition EngineSystem.h:42
float EngineRevUpMOI
Definition EngineSystem.h:47
uint16 EngineIdleRPM
Definition EngineSystem.h:44
float EngineBrakeEffect
Definition EngineSystem.h:45
FNormalisedGraph TorqueCurve
Definition EngineSystem.h:41
static constexpr UE_FORCEINLINE_HINT T Clamp(const T X, const T MinValue, const T MaxValue)
Definition UnrealMathUtility.h:592