FSimpleEngineSim

Windows
MacOS
Linux

Inheritance Hierarchy

TVehicleSystem

FSimpleEngineSim

References

Module

ChaosVehiclesCore

Header

/Engine/Source/Runtime/Experimental/ChaosVehicles/ChaosVehiclesCore/Public/EngineSystem.h

Include

#include "EngineSystem.h"

Syntax

class FSimpleEngineSim : public TVehicleSystem< FSimpleEngineConfig >

Variables

Name Description

Protected variable

float

 

CurrentRPM

Protected variable

float

 

DriveTorque

Protected variable

float

 

EngineIdleSpeed

Protected variable

bool

 

EngineStarted

Protected variable

bool

 

FreeRunning

Protected variable

float

 

MaxEngineSpeed

Protected variable

float

 

Omega

Protected variable

float

 

RevRate

Protected variable

float

 

TargetSpeed

Protected variable

float

 

ThrottlePosition

Constructors

Name Description

Public function

FSimpleEngineSim

(
    const FSimpleEngineConfig* Sta...
)

Functions

Name Description

Public function

float

 

GetEngineRevRate()

Public function Const

float

 

GetEngineRPM()

Get the Engine speed in Revolutions Per Minute

Public function

float

 

GetEngineTorque()

Public function

float

 

GetTorqueFromRPM

(
    bool LimitToIdle
)

Public function

float

 

GetTorqueFromRPM

(
    float RPM,
    bool LimitToIdle
)

Get torque value from torque curve based on input RPM

Public function

void

 

SetEngineRPM

(
    bool FreeRunningIn,
    float InEngineRPM
)

When the wheels are in contact with the ground and clutch engaged then the load on the engine from the wheels determines the engine speed.

Public function

void

 

SetThrottle

(
    float InThrottle
)

Pass in the throttle position to the engine

Public function

void

 

Simulate

(
    float DeltaTime
)

Simulate - NOP at the moment

Public function

void

 

StartEngine()

Start the engine

Public function

void

 

StopEngine()

Stop the engine

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss