iRDS - Intelligent Race Driver System  V 2.1.0.5
 All Classes Namespaces Functions Variables Properties Events
IRDSDrivetrain Class Reference
Inheritance diagram for IRDSDrivetrain:

Public Member Functions

float GetRPM ()
 Gets the RP. More...
 
float GetCurrentPower ()
 Gets the current power. More...
 
float GetOriginalPower ()
 Gets the original power. More...
 
int GetGear ()
 Gets the gear. More...
 
float GetMaxPower ()
 Gets the max power. More...
 
float GetPowerRPM ()
 Gets the power RPM. More...
 
float GetPSI ()
 Gets the PSI. More...
 
float[] GetGearRatios ()
 Gets the gear ratios. More...
 
float GetFinalDriveRatio ()
 Gets the final drive ratio. More...
 
float GetMaxRPM ()
 Gets the max RPM. More...
 
float GetMaxTorque ()
 Gets the max torque. More...
 
float GetOriginalTorque ()
 Gets the original torque. More...
 
float GetMinRPM ()
 Gets the minimum RPM. More...
 
float GetOriginalMinRPM ()
 Gets the original minimum RPM. More...
 
float GetEngineBaseFriction ()
 Gets the engine base friction. More...
 
float GetEngineRPMFriction ()
 Gets the engine RPM friction. More...
 
Vector3 GetEngineOrientation ()
 Gets the engine orientation. More...
 
float GetDifferentialLockCoefficient ()
 Gets the differential lock coefficient. More...
 
float GetEngineInertia ()
 Gets the engine inertia. More...
 
float GetTurboAirPresure ()
 Gets the turbo air presure. More...
 
float GetTurboRPM ()
 Gets the turbo RP. More...
 
bool GetFuelConsume ()
 Gets the fuel consume. More...
 
void SetEngineBaseFriction (float Value)
 Sets the engine base friction. More...
 
void SetEngineRPMFriction (float Value)
 Sets the engine RPM friction. More...
 
void SetEngineOrientation (Vector3 Value)
 Sets the engine orientation. More...
 
void SetDifferentialLockCoefficient (float Value)
 Sets the differential lock coefficient. More...
 
void SetEngineInertia (float Value)
 Sets the engine inertia. More...
 
void SetTurboRPM (float Value)
 Sets the turbo RP. More...
 
void SetFuelConsume (bool flag)
 Sets the fuel consume. More...
 
void SetTorqueRPM (float Value)
 Sets the torque RP. More...
 
float GetTorqueRPM ()
 Gets the torque RP. More...
 
void SetMinRPM (float Value)
 Sets the minimum RP. More...
 
void SetMaxRPM (float Value)
 Sets the max RP. More...
 
void SetFinalDriveRatio (float Value)
 Sets the final drive ratio. More...
 
void SetGearRatios (float[] Value)
 Sets the gear ratios. More...
 
void SetTurboPSI (float Value)
 Sets the turbo PS. More...
 
void SetPowerRPM (float Value)
 Sets the power RP. More...
 
void SetMaxPower (float Value)
 Sets the max power. More...
 
void SetGear (int Value)
 Sets the gear. More...
 
void SetMaxTorque (float Value)
 Sets the max torque. More...
 
bool GetAutomatic ()
 Gets the automatic. More...
 
void SetAutomatic (bool Value)
 Sets the automatic. More...
 
delegate void OnEngineTorque (float engineTorque, float ratio)
 
delegate void OnEngineSpeedUpdate (out float wheelsAngularVelocity, float engineAngularVelo)
 
float GetMaxPowerWithTurbo ()
 Gets the max power with turbo. More...
 
float GetMaxTorqueWithTurbo ()
 Gets the max torque with turbo. More...
 
float CalcEngineTorque ()
 Calculates the engine torque. More...
 
void StartEngine ()
 Starts the engine. More...
 
void changeGearToTarget (int wantedGear, float shiftSpeed)
 Changes the gear to target. More...
 
void ShiftUp ()
 Shifts up. More...
 
void ShiftDown ()
 Shifts down. More...
 
float CalcTurbo ()
 Calculates the turbo PSI. More...
 
string SetDrivetrain (int pos)
 Sets the drivetrain. More...
 
string GetDrivetrain ()
 Gets the drivetrain. More...
 
void TurnOff ()
 Turns the engine off. More...
 

Public Attributes

float shiftUpRpmPercent = 1.0f
 The shift up rpm percent. More...
 
float shiftDownRpmPercent = 0.5f
 The shift down rpm percent. More...
 
bool automaticClucth = true
 The automatic clucth. More...
 
float clutchInput = 0
 The clutch input. More...
 
int gearWanted = 2
 The gear wanted. More...
 
float lastTimeShifted = 0
 The last time shifted. More...
 
float ShiftSpeed = 0.3f
 The shift speed. More...
 
float lastStartEngineTime = 0
 The last start engine time. More...
 
bool startEngine = false
 The start engine. More...
 
float engineStartingTime = 0.5f
 The engine starting time. More...
 
float engineCrankTime = 0.60f
 The engine crank time. More...
 
float fuelConsumptionMultiplier = 1
 The fuel consumption multiplier. More...
 
float nitroFuel = 100f
 The nitro fuel. More...
 
float nitroBoostDurability = 0.5f
 The nitro boost durability. More...
 
bool useNitro = false
 The use nitro. More...
 
float engineTorque = 0
 The engine torque. More...
 
float[] gearSpeed
 The gear speed. More...
 
float engineVacuumFriction = 0.0f
 The engine vacuum friction. More...
 
float engineVacuumRPMFriction = 0.0f
 The engine vacuum RPM friction. More...
 
float engineShakeAmount = 0f
 The engine shake amount. More...
 
float engineMaxShake =0f
 The engine max shake. More...
 
float baseShake = 0f
 The base shake. More...
 
float idleRPMRoughness = 0f
 The idle RPM roughness. More...
 
bool engineVertical = false
 The engine vertical. More...
 
float engineRevUpToqrueMultiplier = 1f
 The engine rev up toqrue multiplier. More...
 
bool shiftingDown = false
 The shifting down. More...
 
bool shiftingUp = false
 The shifting up. More...
 
bool autoHeel_ToeBrakeTech = false
 The auto heel_ toe brake tech. More...
 
bool isShiftting = false
 The is shiftting. More...
 
bool engineStarted = false
 The engine started. More...
 
float revLimiterRPM = 0f
 The rev limiter RP. More...
 
bool autoThrottleForShifting = false
 The auto throttle for shifting. More...
 
bool shiftingDownSoundSignal = false
 The shifting down sound signal. More...
 
bool shiftingUpSoundSignal = false
 The shifting up sound signal. More...
 
bool shiftingSoundSignal = false
 The shifting sound signal. More...
 
float heel_toeRPMPercent = 0.85f
 The heel_toe RPM percent. More...
 
float heel_toeMinThrottle = 0.5f
 The heel_toe minimum throttle. More...
 
float heel_toeMaxThrottle = 1f
 The heel_toe max throttle. More...
 
float autoThrottleForShiftingSpeed = 5f
 The auto throttle for shifting speed. More...
 
float maxThrottleToShiftDown = 0.5f
 The max throttle to shift down. More...
 
float minThrottleToShiftup = 0.5f
 The minimum throttle to shiftup. More...
 
float minRPMPercentageToShiftDown = 0.4f
 The minimum RPM percentage to shift down. More...
 
float maxRPMPercentageToShiftUp = 1.2f
 The max RPM percentage to shift up. More...
 
float throttlePlatePosition = 0f
 The throttle plate position. More...
 
Rigidbody fuelTankBody
 The fuel tank body. More...
 
bool useSimplePhysics = false
 The use simple physics. More...
 
OnEngineTorque onEngineTorqueUpdate
 The on engine torque update. More...
 
OnEngineSpeedUpdate onEngineSpeedUpdate
 The on engine speed update. More...
 

Properties

float EngineLoad [get]
 Gets the engine load. More...
 

Member Function Documentation

float IRDSDrivetrain.CalcEngineTorque ( )

Calculates the engine torque.

Returns
The engine torque.
float IRDSDrivetrain.CalcTurbo ( )

Calculates the turbo PSI.

Returns
The turbo PSI.
void IRDSDrivetrain.changeGearToTarget ( int  wantedGear,
float  shiftSpeed 
)

Changes the gear to target.

Parameters
wantedGearWanted gear.
shiftSpeedShift speed.
bool IRDSDrivetrain.GetAutomatic ( )

Gets the automatic.

Returns
true, if automatic was gotten, false otherwise.
float IRDSDrivetrain.GetCurrentPower ( )

Gets the current power.

Returns
The current power.
float IRDSDrivetrain.GetDifferentialLockCoefficient ( )

Gets the differential lock coefficient.

Returns
The differential lock coefficient.
string IRDSDrivetrain.GetDrivetrain ( )

Gets the drivetrain.

Returns
The drivetrain.
float IRDSDrivetrain.GetEngineBaseFriction ( )

Gets the engine base friction.

Returns
The engine base friction.
float IRDSDrivetrain.GetEngineInertia ( )

Gets the engine inertia.

Returns
The engine inertia.
Vector3 IRDSDrivetrain.GetEngineOrientation ( )

Gets the engine orientation.

Returns
The engine orientation.
float IRDSDrivetrain.GetEngineRPMFriction ( )

Gets the engine RPM friction.

Returns
The engine RPM friction.
float IRDSDrivetrain.GetFinalDriveRatio ( )

Gets the final drive ratio.

Returns
The final drive ratio.
bool IRDSDrivetrain.GetFuelConsume ( )

Gets the fuel consume.

Returns
true, if fuel consume was gotten, false otherwise.
int IRDSDrivetrain.GetGear ( )

Gets the gear.

Returns
The gear.
float [] IRDSDrivetrain.GetGearRatios ( )

Gets the gear ratios.

Returns
The gear ratios.
float IRDSDrivetrain.GetMaxPower ( )

Gets the max power.

Returns
The max power.
float IRDSDrivetrain.GetMaxPowerWithTurbo ( )

Gets the max power with turbo.

Returns
The max power with turbo.
float IRDSDrivetrain.GetMaxRPM ( )

Gets the max RPM.

Returns
The max RP.
float IRDSDrivetrain.GetMaxTorque ( )

Gets the max torque.

Returns
The max torque.
float IRDSDrivetrain.GetMaxTorqueWithTurbo ( )

Gets the max torque with turbo.

Returns
The max torque with turbo.
float IRDSDrivetrain.GetMinRPM ( )

Gets the minimum RPM.

Returns
The minimum RP.
float IRDSDrivetrain.GetOriginalMinRPM ( )

Gets the original minimum RPM.

Returns
The original minimum RP.
float IRDSDrivetrain.GetOriginalPower ( )

Gets the original power.

Returns
The original power.
float IRDSDrivetrain.GetOriginalTorque ( )

Gets the original torque.

Returns
The original torque.
float IRDSDrivetrain.GetPowerRPM ( )

Gets the power RPM.

Returns
The power RP.
float IRDSDrivetrain.GetPSI ( )

Gets the PSI.

Returns
The PS.
float IRDSDrivetrain.GetRPM ( )

Gets the RP.

Returns
The RP.
float IRDSDrivetrain.GetTorqueRPM ( )

Gets the torque RP.

Returns
The torque RP.
float IRDSDrivetrain.GetTurboAirPresure ( )

Gets the turbo air presure.

Returns
The turbo air presure.
float IRDSDrivetrain.GetTurboRPM ( )

Gets the turbo RP.

Returns
The turbo RP.
void IRDSDrivetrain.SetAutomatic ( bool  Value)

Sets the automatic.

Parameters
ValueIf set to true value.
void IRDSDrivetrain.SetDifferentialLockCoefficient ( float  Value)

Sets the differential lock coefficient.

Parameters
ValueValue.
string IRDSDrivetrain.SetDrivetrain ( int  pos)

Sets the drivetrain.

Returns
The drivetrain.
Parameters
posPosition.
void IRDSDrivetrain.SetEngineBaseFriction ( float  Value)

Sets the engine base friction.

Parameters
ValueValue.
void IRDSDrivetrain.SetEngineInertia ( float  Value)

Sets the engine inertia.

Parameters
ValueValue.
void IRDSDrivetrain.SetEngineOrientation ( Vector3  Value)

Sets the engine orientation.

Parameters
ValueValue.
void IRDSDrivetrain.SetEngineRPMFriction ( float  Value)

Sets the engine RPM friction.

Parameters
ValueValue.
void IRDSDrivetrain.SetFinalDriveRatio ( float  Value)

Sets the final drive ratio.

Parameters
ValueValue.
void IRDSDrivetrain.SetFuelConsume ( bool  flag)

Sets the fuel consume.

Parameters
flagIf set to true flag.
void IRDSDrivetrain.SetGear ( int  Value)

Sets the gear.

Parameters
ValueValue.
void IRDSDrivetrain.SetGearRatios ( float[]  Value)

Sets the gear ratios.

Parameters
ValueValue.
void IRDSDrivetrain.SetMaxPower ( float  Value)

Sets the max power.

Parameters
ValueValue.
void IRDSDrivetrain.SetMaxRPM ( float  Value)

Sets the max RP.

Parameters
ValueValue.
void IRDSDrivetrain.SetMaxTorque ( float  Value)

Sets the max torque.

Parameters
ValueValue.
void IRDSDrivetrain.SetMinRPM ( float  Value)

Sets the minimum RP.

Parameters
ValueValue.
void IRDSDrivetrain.SetPowerRPM ( float  Value)

Sets the power RP.

Parameters
ValueValue.
void IRDSDrivetrain.SetTorqueRPM ( float  Value)

Sets the torque RP.

Parameters
ValueValue.
void IRDSDrivetrain.SetTurboPSI ( float  Value)

Sets the turbo PS.

Parameters
ValueValue.
void IRDSDrivetrain.SetTurboRPM ( float  Value)

Sets the turbo RP.

Parameters
ValueValue.
void IRDSDrivetrain.ShiftDown ( )

Shifts down.

void IRDSDrivetrain.ShiftUp ( )

Shifts up.

void IRDSDrivetrain.StartEngine ( )

Starts the engine.

void IRDSDrivetrain.TurnOff ( )

Turns the engine off.

Member Data Documentation

bool IRDSDrivetrain.autoHeel_ToeBrakeTech = false

The auto heel_ toe brake tech.

bool IRDSDrivetrain.automaticClucth = true

The automatic clucth.

bool IRDSDrivetrain.autoThrottleForShifting = false

The auto throttle for shifting.

float IRDSDrivetrain.autoThrottleForShiftingSpeed = 5f

The auto throttle for shifting speed.

float IRDSDrivetrain.baseShake = 0f

The base shake.

float IRDSDrivetrain.clutchInput = 0

The clutch input.

float IRDSDrivetrain.engineCrankTime = 0.60f

The engine crank time.

float IRDSDrivetrain.engineMaxShake =0f

The engine max shake.

float IRDSDrivetrain.engineRevUpToqrueMultiplier = 1f

The engine rev up toqrue multiplier.

float IRDSDrivetrain.engineShakeAmount = 0f

The engine shake amount.

bool IRDSDrivetrain.engineStarted = false

The engine started.

float IRDSDrivetrain.engineStartingTime = 0.5f

The engine starting time.

float IRDSDrivetrain.engineTorque = 0

The engine torque.

float IRDSDrivetrain.engineVacuumFriction = 0.0f

The engine vacuum friction.

float IRDSDrivetrain.engineVacuumRPMFriction = 0.0f

The engine vacuum RPM friction.

bool IRDSDrivetrain.engineVertical = false

The engine vertical.

float IRDSDrivetrain.fuelConsumptionMultiplier = 1

The fuel consumption multiplier.

Rigidbody IRDSDrivetrain.fuelTankBody

The fuel tank body.

float [] IRDSDrivetrain.gearSpeed

The gear speed.

int IRDSDrivetrain.gearWanted = 2

The gear wanted.

float IRDSDrivetrain.heel_toeMaxThrottle = 1f

The heel_toe max throttle.

float IRDSDrivetrain.heel_toeMinThrottle = 0.5f

The heel_toe minimum throttle.

float IRDSDrivetrain.heel_toeRPMPercent = 0.85f

The heel_toe RPM percent.

float IRDSDrivetrain.idleRPMRoughness = 0f

The idle RPM roughness.

bool IRDSDrivetrain.isShiftting = false

The is shiftting.

float IRDSDrivetrain.lastStartEngineTime = 0

The last start engine time.

float IRDSDrivetrain.lastTimeShifted = 0

The last time shifted.

float IRDSDrivetrain.maxRPMPercentageToShiftUp = 1.2f

The max RPM percentage to shift up.

float IRDSDrivetrain.maxThrottleToShiftDown = 0.5f

The max throttle to shift down.

float IRDSDrivetrain.minRPMPercentageToShiftDown = 0.4f

The minimum RPM percentage to shift down.

float IRDSDrivetrain.minThrottleToShiftup = 0.5f

The minimum throttle to shiftup.

float IRDSDrivetrain.nitroBoostDurability = 0.5f

The nitro boost durability.

float IRDSDrivetrain.nitroFuel = 100f

The nitro fuel.

OnEngineSpeedUpdate IRDSDrivetrain.onEngineSpeedUpdate

The on engine speed update.

OnEngineTorque IRDSDrivetrain.onEngineTorqueUpdate

The on engine torque update.

float IRDSDrivetrain.revLimiterRPM = 0f

The rev limiter RP.

float IRDSDrivetrain.shiftDownRpmPercent = 0.5f

The shift down rpm percent.

bool IRDSDrivetrain.shiftingDown = false

The shifting down.

bool IRDSDrivetrain.shiftingDownSoundSignal = false

The shifting down sound signal.

bool IRDSDrivetrain.shiftingSoundSignal = false

The shifting sound signal.

bool IRDSDrivetrain.shiftingUp = false

The shifting up.

bool IRDSDrivetrain.shiftingUpSoundSignal = false

The shifting up sound signal.

float IRDSDrivetrain.ShiftSpeed = 0.3f

The shift speed.

float IRDSDrivetrain.shiftUpRpmPercent = 1.0f

The shift up rpm percent.

bool IRDSDrivetrain.startEngine = false

The start engine.

float IRDSDrivetrain.throttlePlatePosition = 0f

The throttle plate position.

bool IRDSDrivetrain.useNitro = false

The use nitro.

bool IRDSDrivetrain.useSimplePhysics = false

The use simple physics.

Property Documentation

float IRDSDrivetrain.EngineLoad
get

Gets the engine load.

The engine load.