Navigation
API > API/Runtime > API/Runtime/ChaosVehiclesCore
| Name | FSimpleTransmissionSim |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/ChaosVehicles/ChaosVehiclesCore/Public/TransmissionSystem.h |
| Include Path | #include "TransmissionSystem.h" |
Syntax
class FSimpleTransmissionSim : public TVehicleSystem< FSimpleTransmissionConfig >
Inheritance Hierarchy
- TVehicleSystem → FSimpleTransmissionSim
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSimpleTransmissionSim
(
const FSimpleTransmissionConfig* SetupIn |
TransmissionSystem.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AllowedToChangeGear | bool | TransmissionSystem.h | ||
| CurrentGear | int32 | TransmissionSystem.h | ||
| CurrentGearChangeTime | float | TransmissionSystem.h | ||
| EngineRPM | float | TransmissionSystem.h | ||
| TargetGear | int32 | TransmissionSystem.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ChangeDown() |
Set the target gear to one lower than current target, will clamp gear index within rage | TransmissionSystem.h | |
void ChangeUp() |
Set the target gear to one higher than current target, will clamp gear index within rage | TransmissionSystem.h | |
void CorrectGearInputRange
(
int32& GearIndexInOut |
TransmissionSystem.h | ||
int32 GetCurrentGear() |
Get the current gear index, (reverse gears < 0, neutral 0, forward gears > 0) | TransmissionSystem.h | |
float GetCurrentGearChangeTime() |
Get the current gear change time | TransmissionSystem.h | |
float GetEngineRPMFromWheelRPM
(
float InWheelRPM |
Return InTransmissionTorque / GetGearRatio(GetCurrentGear()); // #todo: what about transmission frictional losses | TransmissionSystem.h | |
float GetGearRatio
(
int32 InGear |
Get the final combined gear ratio for the specified gear (reverse gears < 0, neutral 0, forward gears > 0) | TransmissionSystem.h | |
int32 GetTargetGear() |
Get the target gear index, (reverse gears < 0, neutral 0, forward gears > 0) | TransmissionSystem.h | |
float GetTransmissionRPM () |
Get the transmission RPM for the current state of the engine RPM and gear selection | TransmissionSystem.h | |
float GetTransmissionRPM
(
float InEngineRPM, |
Get the transmission RPM, from the specified engine RPM and gear selection | TransmissionSystem.h | |
float GetTransmissionTorque
(
float InEngineTorque |
Given the engine torque return the transmission torque taking into account the gear ratios and transmission losses | TransmissionSystem.h | |
bool IsCurrentlyChangingGear() |
Are we currently in the middle of a gear change | TransmissionSystem.h | |
bool IsOutOfGear() |
TransmissionSystem.h | ||
void SetAllowedToChangeGear
(
bool OkToChangeIn |
TransmissionSystem.h | ||
void SetCurrentGear
(
const int32 InCurrentGear |
Set the current gear index, (reverse gears < 0, neutral 0, forward gears > 0) | TransmissionSystem.h | |
void SetCurrentGearChangeTime
(
const float InCurrentGearChangeTime |
Set the current gear change time | TransmissionSystem.h | |
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 | TransmissionSystem.h | |
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 | TransmissionSystem.h | |
void SetTargetGear
(
const int32 InTargetGear |
Set the target gear index, (reverse gears < 0, neutral 0, forward gears > 0) | TransmissionSystem.h | |
void Simulate
(
float DeltaTime |
Simulate - update internal state | TransmissionSystem.h |