Navigation
API > API/Runtime > API/Runtime/ChaosVehiclesCore > API/Runtime/ChaosVehiclesCore/SimModule
Inheritance Hierarchy
- FTorqueSimModule
- TSimModuleSettings
- TSimulationModuleTypeable
- FEngineSimModule
References
| Module | ChaosVehiclesCore |
| Header | /Engine/Source/Runtime/Experimental/ChaosVehicles/ChaosVehiclesCore/Public/SimModule/EngineModule.h |
| Include | #include "SimModule/EngineModule.h" |
Syntax
class FEngineSimModule :
public Chaos::FTorqueSimModule ,
public Chaos::TSimModuleSettings< FEngineSettings > ,
public Chaos::TSimulationModuleTypeable< FEngineSimModule >
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | EngineIdleSpeed | ||
| bool | EngineStarted | ||
| float | MaxEngineSpeed |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FEngineSimModule
(
const FEngineSettings& Settings |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FName | |||
| float | |||
| float | GetEngineTorque
(
float ThrottlePosition, |
||
| float | GetTorqueFromRPM
(
float RPM, |
Overridden from ISimulationModuleBase
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< FModuleNetData > | GenerateNetData
(
const int32 NodeArrayIndex |
This is the replication datas | |
| FSimOutputData * | |||
| const FString | GetDebugName () |
Get the friendly name for this module, primarily for logging & debugging module tree | |
| bool | GetDebugString
(
FString& StringOut |
Option to return debug text for drawing on the HUD in the Game Thread | |
| void | Simulate
(
float DeltaTime, |
The main Simulation function that is called from the physics async callback thread |