Navigation
API > API/Runtime > API/Runtime/ChaosVehiclesCore
Inheritance Hierarchy
- TVehicleSystem
- FSimpleTransmissionSim
References
| Module | ChaosVehiclesCore |
| Header | /Engine/Source/Runtime/Experimental/ChaosVehicles/ChaosVehiclesCore/Public/TransmissionSystem.h |
| Include | #include "TransmissionSystem.h" |
Syntax
class FSimpleTransmissionSim : public TVehicleSystem< FSimpleTransmissionConfig >
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSimpleTransmissionSim
(
const FSimpleTransmissionConfig* SetupIn |
Functions
| Type | Name | Description | |
|---|---|---|---|
| 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 | Get the current gear index, (reverse gears < 0, neutral 0, forward gears > 0) | ||
| float | Get the current gear change time | ||
| *float | GetEngineTorque
(
float InTransmissionTorque |
Return InTransmissionTorque / GetGearRatio(GetCurrentGear()); // #todo: what about transmission frictional losses | |
| float | GetGearRatio
(
int32 InGear |
Get the final combined gear ratio for the specified gear (reverse gears < 0, neutral 0, forward gears > 0) | |
| int32 | Get the target gear index, (reverse gears < 0, neutral 0, forward gears > 0) | ||
| float | Get the transmission RPM for the current state of the engine RPM and gear selection | ||
| float | GetTransmissionRPM
(
float InEngineRPM, |
Get the transmission RPM, from the specified engine RPM and gear selection | |
| float | GetTransmissionTorque
(
float InEngineTorque |
Given the engine torque return the transmission torque taking into account the gear ratios and transmission losses | |
| bool | Are we currently in the middle of a gear change | ||
| bool | IsOutOfGear () |
||
| void | SetAllowedToChangeGear
(
bool OkToChangeIn |
||
| void | SetCurrentGear
(
const int32 InCurrentGear |
Set the current gear index, (reverse gears < 0, neutral 0, forward gears > 0) | |
| void | SetCurrentGearChangeTime
(
const float InCurrentGearChangeTime |
Set the current gear change time | |
| void | SetEngineRPM
(
float InRPM |
Tell the transmission system what the current engine RPM is, so we can decide when to change up/down with automatic transmission type | |
| void | SetGear
(
int32 InGear, |
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 | |
| void | SetTargetGear
(
const int32 InTargetGear |
Set the target gear index, (reverse gears < 0, neutral 0, forward gears > 0) | |
| void | Simulate
(
float DeltaTime |
Simulate - update internal state |