Class VehicleEngineSimulator
- Namespace
- LibreRally.Vehicle
- Assembly
- LibreRally.dll
public sealed class VehicleEngineSimulator
- Inheritance
-
VehicleEngineSimulator
- Inherited Members
-
Properties
AutoClutchLaunchRpm
public float AutoClutchLaunchRpm { get; set; }
Property Value
- float
AutoClutchMinTorqueScale
public float AutoClutchMinTorqueScale { get; set; }
Property Value
- float
AutoClutchWheelspinWindowRpm
public float AutoClutchWheelspinWindowRpm { get; set; }
Property Value
- float
EngineBrakeTorque
public float EngineBrakeTorque { get; set; }
Property Value
- float
EngineDynamicFriction
public float EngineDynamicFriction { get; set; }
Property Value
- float
EngineFriction
public float EngineFriction { get; set; }
Property Value
- float
EngineInertia
public float EngineInertia { get; set; }
Property Value
- float
IdleRpm
public float IdleRpm { get; set; }
Property Value
- float
MaxRpm
public float MaxRpm { get; set; }
Property Value
- float
ShiftSlipAllowanceRpm
public float ShiftSlipAllowanceRpm { get; set; }
Property Value
- float
TorqueCurveNm
public float[] TorqueCurveNm { get; set; }
Property Value
- float[]
TorqueCurveRpm
public float[] TorqueCurveRpm { get; set; }
Property Value
- float[]
Methods
AdjustAndClampDrivenWheelOmega(float, float, float, float)
public static float AdjustAndClampDrivenWheelOmega(float roadWheelOmega, float drivenWheelOmega, float effectiveRatio, float slipAllowanceRpm)
Parameters
roadWheelOmega float
drivenWheelOmega float
effectiveRatio float
slipAllowanceRpm float
Returns
- float
ComputeAutoClutchTorqueScale(float, float, float, float, float)
public static float ComputeAutoClutchTorqueScale(float drivenWheelOmega, float slipClampedOmega, float effectiveRatio, float wheelspinWindowRpm, float minTorqueScale)
Parameters
drivenWheelOmega float
slipClampedOmega float
effectiveRatio float
wheelspinWindowRpm float
minTorqueScale float
Returns
- float
InterpolateTorqueCurve(float)
public float InterpolateTorqueCurve(float rpm)
Parameters
rpm float
Returns
- float
StepRpm(ref VehicleEngineState, float, float, float, float, float)
public void StepRpm(ref VehicleEngineState state, float driveInput, float drivelineRpm, float forwardSpeed, float effectiveRatio, float dt)
Parameters
state VehicleEngineState
driveInput float
drivelineRpm float
forwardSpeed float
effectiveRatio float
dt float