scripting:components:wheeledsimulation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
scripting:components:wheeledsimulation [2022/08/09 23:52] – [GearboxSetEfficiencyState(float efficiency);] jerryhopper | scripting:components:wheeledsimulation [2022/08/10 00:24] (current) – [Common usage] jerryhopper | ||
---|---|---|---|
Line 4: | Line 4: | ||
Provides functionality for wheeled vehicles. | Provides functionality for wheeled vehicles. | ||
- | **class:** VehicleWheeledSimulation: | + | **class:** VehicleWheeledSimulation |
+ | |||
+ | **Parent Class:** VehicleBaseSimulation | ||
**Location: | **Location: | ||
Line 11: | Line 13: | ||
--- | --- | ||
+ | |||
+ | ===== Common usage ===== | ||
+ | |||
+ | |||
+ | wip | ||
+ | |||
+ | |||
===== Functions ===== | ===== Functions ===== | ||
Line 136: | Line 145: | ||
Return Type: [[scripting: | Return Type: [[scripting: | ||
- | ==== EngineGetRPMIdle(); ==== | + | ==== EngineGetRPMIdle() ==== |
+ | |||
+ | EngineGetRPMIdle(); | ||
Returns idle rpm of the engine | Returns idle rpm of the engine | ||
Return Type: [[scripting: | Return Type: [[scripting: | ||
- | ==== EngineGetRPMPeakTorque(); ==== | + | ==== EngineGetRPMPeakTorque() ==== |
+ | |||
+ | EngineGetRPMPeakTorque(); | ||
Returns rpm at which engine provides maximal torque | Returns rpm at which engine provides maximal torque | ||
Return Type: [[scripting: | Return Type: [[scripting: | ||
- | ==== EngineGetRPMPeakPower(); ==== | + | ==== EngineGetRPMPeakPower() ==== |
+ | |||
+ | EngineGetRPMPeakPower(); | ||
Returns rpm at which engine provides maximal power | Returns rpm at which engine provides maximal power | ||
Return Type: [[scripting: | Return Type: [[scripting: | ||
- | ==== EngineGetRPMMax(); ==== | + | ==== EngineGetRPMMax() ==== |
+ | |||
+ | EngineGetRPMMax(); | ||
Returns maximal working rpm before engine explodes | Returns maximal working rpm before engine explodes | ||
Return Type: [[scripting: | Return Type: [[scripting: | ||
- | ==== EngineGetRPM(); ==== | + | ==== EngineGetRPM() ==== |
+ | |||
+ | EngineGetRPM(); | ||
Returns current engine' | Returns current engine' | ||
Return Type: [[scripting: | Return Type: [[scripting: | ||
- | ==== EngineGetRPMFeedback(); ==== | + | ==== EngineGetRPMFeedback() ==== |
+ | |||
+ | EngineGetRPMFeedback(); | ||
Returns RPM that is feeded back from rest of the powertrain | Returns RPM that is feeded back from rest of the powertrain | ||
Return Type: [[scripting: | Return Type: [[scripting: | ||
- | ==== EngineGetLoad(); ==== | + | ==== EngineGetLoad() ==== |
+ | |||
+ | EngineGetLoad(); | ||
Returns current engine load in range < 0, 1 > | Returns current engine load in range < 0, 1 > | ||
Return Type: [[scripting: | Return Type: [[scripting: | ||
- | ==== EngineGetPeakTorque(); ==== | + | ==== EngineGetPeakTorque() ==== |
+ | |||
+ | EngineGetPeakTorque(); | ||
Returns initial engine' | Returns initial engine' | ||
Return Type: [[scripting: | Return Type: [[scripting: | ||
- | ==== EngineGetPeakTorqueState(); ==== | + | ==== EngineGetPeakTorqueState() ==== |
+ | |||
+ | EngineGetPeakTorqueState(); | ||
Returns current engine' | Returns current engine' | ||
Return Type: [[scripting: | Return Type: [[scripting: | ||
- | ==== EngineSetPeakTorqueState(float peakTorque); ==== | + | ==== EngineSetPeakTorqueState() ==== |
+ | |||
+ | EngineSetPeakTorqueState(float peakTorque); | ||
+ | | ||
Sets current engine' | Sets current engine' | ||
\param peakTorque must be in Nm (newton-metre). | \param peakTorque must be in Nm (newton-metre). | ||
Line 187: | Line 217: | ||
Return Type: [[scripting: | Return Type: [[scripting: | ||
- | ==== EngineGetPeakPower(); ==== | + | ==== EngineGetPeakPower() ==== |
+ | |||
+ | EngineGetPeakPower(); | ||
+ | | ||
Returns initial engine' | Returns initial engine' | ||
Return Type: [[scripting: | Return Type: [[scripting: | ||
- | ==== EngineGetPeakPowerState(); ==== | + | ==== EngineGetPeakPowerState() ==== |
+ | |||
+ | EngineGetPeakPowerState(); | ||
Returns current engine' | Returns current engine' | ||
Return Type: [[scripting: | Return Type: [[scripting: | ||
- | ==== EngineSetPeakPowerState(float peakPower); ==== | + | ==== EngineSetPeakPowerState() ==== |
+ | |||
+ | EngineSetPeakPowerState(float peakPower); | ||
+ | | ||
Sets current engine' | Sets current engine' | ||
\param peakTorque must be in kW (kilowatts). | \param peakTorque must be in kW (kilowatts). | ||
Line 203: | Line 241: | ||
Return Type: [[scripting: | Return Type: [[scripting: | ||
- | ==== GearboxGetEfficiency(); ==== | + | ==== GearboxGetEfficiency() ==== |
+ | |||
+ | GearboxGetEfficiency(); | ||
+ | | ||
Returns initial gearbox efficiency. | Returns initial gearbox efficiency. | ||
Return Type: [[scripting: | Return Type: [[scripting: | ||
- | ==== GearboxGetEfficiencyState(); ==== | + | ==== GearboxGetEfficiencyState() ==== |
+ | |||
+ | GearboxGetEfficiencyState(); | ||
+ | | ||
Returns current gearbox efficiency. | Returns current gearbox efficiency. | ||
scripting/components/wheeledsimulation.1660085529.txt.gz · Last modified: 2022/08/09 23:52 by jerryhopper