| TVehicleSystem
|
Module |
|
Header |
/Engine/Source/Runtime/Experimental/ChaosVehicles/ChaosVehiclesCore/Public/TransmissionSystem.h |
Include |
#include "TransmissionSystem.h" |
class FSimpleTransmissionSim : public TVehicleSystem< FSimpleTransmissionConfig >
Name | Description | |
---|---|---|
|
FSimpleTransmissionSim ( |
Name | Description | ||
---|---|---|---|
|
ChangeDown() |
Set the target gear to one lower than current target, will clamp gear index within rage |
|
|
ChangeUp() |
Set the target gear to one higher than current target, will clamp gear index within rage |
|
|
GetCurrentGear() |
Get the current gear index, (reverse gears < 0, neutral 0, forward gears > 0) |
|
|
*float |
GetEngineTorque ( |
Return InTransmissionTorque / GetGearRatio(GetCurrentGear()); // #todo: what about transmission frictional losses |
|
float |
GetGearRatio ( |
Get the final combined gear ratio for the specified gear (reverse gears < 0, neutral 0, forward gears > 0) |
|
GetTargetGear() |
Get the target gear index, (reverse gears < 0, neutral 0, forward gears > 0) |
|
|
float |
GetTransmissionRPM() |
Get the transmission RPM for the current state of the engine RPM and gear selection |
|
float |
GetTransmissionRPM ( |
Get the transmission RPM, from the specified engine RPM and gear selection |
|
float |
GetTransmissionTorque ( |
Given the engine torque return the transmission torque taking into account the gear ratios and transmission losses |
|
IsCurrentlyChangingGear() |
Are we currently in the middle of a gear change |
|
|
IsOutOfGear() |
||
|
SetAllowedToChangeGear ( |
||
|
SetEngineRPM ( |
Tell the transmission system what the current engine RPM is, so we can decide when to change up/down with automatic transmission type |
|
|
SetGear |
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 |
|
|
Simulate ( |
Simulate - update internal state |