Navigation
API > API/Runtime > API/Runtime/ChaosVehiclesCore > API/Runtime/ChaosVehiclesCore/SimModule
Inheritance Hierarchy
- FTorqueSimModule
- TSimModuleSettings
- TSimulationModuleTypeable
- FTransmissionSimModule
References
| Module | ChaosVehiclesCore |
| Header | /Engine/Source/Runtime/Experimental/ChaosVehicles/ChaosVehiclesCore/Public/SimModule/TransmissionModule.h |
| Include | #include "SimModule/TransmissionModule.h" |
Syntax
class FTransmissionSimModule :
public Chaos::FTorqueSimModule ,
public Chaos::TSimModuleSettings< FTransmissionSettings > ,
public Chaos::TSimulationModuleTypeable< FTransmissionSimModule >
Constructors
| Type | Name | Description | |
|---|---|---|---|
FTransmissionSimModule
(
const FTransmissionSettings& Settings |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FName | |||
| void | ChangeDown () |
Set the target gear to one lower than current target, will clamp gear index within rage | |
| void | ChangeUp () |
Set the target gear to one higher than current target, will clamp gear index within rage | |
| void | CorrectGearInputRange
(
int32& GearIndexInOut |
||
| int32 | |||
| float | GetGearRatio
(
int32 InGear |
Get the final combined gear ratio for the specified gear (reverse gears < 0, neutral 0, forward gears > 0) | |
| int32 | |||
| bool | Are we currently in the middle of a gear change | ||
| void | Set the target gear number to change to, can change gear immediately if specified i.e. rather than waiting for the gear change time to elapse |
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 | |
| bool | IsBehaviourType
(
eSimModuleTypeFlags InType |
Is Module of a specific type - used for casting | |
| void | Simulate
(
float DeltaTime, |
The main Simulation function that is called from the physics async callback thread |