Navigation
API > API/Runtime > API/Runtime/ChaosVehiclesCore
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
| Type | Name | Description | |
|---|---|---|---|
| float | CurrentRPM | ||
| float | DriveTorque | ||
| float | EngineIdleSpeed | ||
| bool | EngineStarted | ||
| bool | FreeRunning | ||
| float | MaxEngineSpeed | ||
| float | MaxTorque | ||
| float | Omega | ||
| float | RevRate | ||
| float | TargetSpeed | ||
| float | ThrottlePosition |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSimpleEngineSim
(
const FSimpleEngineConfig* StaticDataIn |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | Get the Engine angular velocity | ||
| float | |||
| float | GetEngineRPM () |
Get the Engine speed in Revolutions Per Minute | |
| float | |||
| float | GetTorqueFromRPM
(
bool LimitToIdle |
||
| float | GetTorqueFromRPM
(
float RPM, |
Get torque value from torque curve based on input RPM | |
| void | SetEngineOmega
(
const float EngineOmega |
Set the Engine angular velocity | |
| void | SetEngineRPM
(
bool FreeRunningIn, |
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. | |
| void | SetMaxTorque
(
float InTorque |
||
| void | SetThrottle
(
float InThrottle |
Pass in the throttle position to the engine | |
| void | Simulate
(
float DeltaTime |
Simulate - NOP at the moment | |
| void | StartEngine () |
Start the engine | |
| void | StopEngine () |
Stop the engine |