User Tools

Site Tools


scripting:components:wheeledsimulation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
scripting:components:wheeledsimulation [2022/08/09 23:52] – [GearboxGetEfficiencyState();] jerryhopperscripting: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: VehicleBaseSimulation+**class:** VehicleWheeledSimulation 
 + 
 +**Parent Class:** VehicleBaseSimulation
  
 **Location:** scripts/Game/generated/Vehicle/VehicleWheeledSimulation.c **Location:** scripts/Game/generated/Vehicle/VehicleWheeledSimulation.c
Line 11: Line 13:
  
 --- ---
 +
 +===== Common usage =====
 +
 +
 +wip
 +
 +
 ===== Functions ===== ===== Functions =====
  
Line 136: Line 145:
 Return Type: [[scripting:datatypes#bool]] Return Type: [[scripting:datatypes#bool]]
  
-==== EngineGetRPMIdle()====+==== EngineGetRPMIdle() ==== 
 + 
 +  EngineGetRPMIdle();
 Returns idle rpm of the engine Returns idle rpm of the engine
  
 Return Type: [[scripting:datatypes#float]] Return Type: [[scripting:datatypes#float]]
  
-==== EngineGetRPMPeakTorque()====+==== EngineGetRPMPeakTorque() ==== 
 + 
 +  EngineGetRPMPeakTorque(); 
 Returns rpm at which engine provides maximal torque Returns rpm at which engine provides maximal torque
  
 Return Type: [[scripting:datatypes#float]] Return Type: [[scripting:datatypes#float]]
  
-==== EngineGetRPMPeakPower()====+==== EngineGetRPMPeakPower() ==== 
 + 
 +  EngineGetRPMPeakPower(); 
 Returns rpm at which engine provides maximal power Returns rpm at which engine provides maximal power
  
 Return Type: [[scripting:datatypes#float]] Return Type: [[scripting:datatypes#float]]
  
-==== EngineGetRPMMax()====+==== EngineGetRPMMax() ==== 
 + 
 +  EngineGetRPMMax(); 
 Returns maximal working rpm before engine explodes Returns maximal working rpm before engine explodes
  
 Return Type: [[scripting:datatypes#float]] Return Type: [[scripting:datatypes#float]]
  
-==== EngineGetRPM()====+==== EngineGetRPM() ==== 
 + 
 +  EngineGetRPM(); 
 Returns current engine's RPM Returns current engine's RPM
  
 Return Type: [[scripting:datatypes#float]] Return Type: [[scripting:datatypes#float]]
  
-==== 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:datatypes#float]] Return Type: [[scripting:datatypes#float]]
  
-==== EngineGetLoad()====+==== EngineGetLoad() ==== 
 + 
 +  EngineGetLoad();
 Returns current engine load in range < 0, 1 > Returns current engine load in range < 0, 1 >
  
 Return Type: [[scripting:datatypes#float]] Return Type: [[scripting:datatypes#float]]
  
-==== EngineGetPeakTorque()====+==== EngineGetPeakTorque() ==== 
 + 
 +  EngineGetPeakTorque();
 Returns initial engine's peak torque in Nm (newton-metre). Returns initial engine's peak torque in Nm (newton-metre).
  
 Return Type: [[scripting:datatypes#float]]  Return Type: [[scripting:datatypes#float]] 
  
-==== EngineGetPeakTorqueState()====+==== EngineGetPeakTorqueState() ==== 
 + 
 +  EngineGetPeakTorqueState();
 Returns current engine's peak torque in Nm (newton-metre). Returns current engine's peak torque in Nm (newton-metre).
  
 Return Type: [[scripting:datatypes#float]] Return Type: [[scripting:datatypes#float]]
  
-==== EngineSetPeakTorqueState(float peakTorque)====+==== EngineSetPeakTorqueState() ==== 
 + 
 +  EngineSetPeakTorqueState(float peakTorque); 
 +  
 Sets current engine's peak torque. Sets current engine's peak torque.
 \param peakTorque must be in Nm (newton-metre). \param peakTorque must be in Nm (newton-metre).
Line 187: Line 217:
 Return Type: [[scripting:datatypes#void]] Return Type: [[scripting:datatypes#void]]
  
-==== EngineGetPeakPower()====+==== EngineGetPeakPower() ==== 
 + 
 +  EngineGetPeakPower(); 
 +  
 Returns initial engine's peak power in kW (kilowatts). Returns initial engine's peak power in kW (kilowatts).
  
 Return Type: [[scripting:datatypes#float]] Return Type: [[scripting:datatypes#float]]
  
-==== EngineGetPeakPowerState()====+==== EngineGetPeakPowerState() ==== 
 + 
 +  EngineGetPeakPowerState();
 Returns current engine's peak power in kW (kilowatts). Returns current engine's peak power in kW (kilowatts).
  
 Return Type: [[scripting:datatypes#float]] Return Type: [[scripting:datatypes#float]]
  
-==== EngineSetPeakPowerState(float peakPower)====+==== EngineSetPeakPowerState() ==== 
 + 
 +  EngineSetPeakPowerState(float peakPower); 
 +  
 Sets current engine's peak power. Sets current engine's peak power.
 \param peakTorque must be in kW (kilowatts). \param peakTorque must be in kW (kilowatts).
Line 203: Line 241:
 Return Type: [[scripting:datatypes#float]] Return Type: [[scripting:datatypes#float]]
  
-==== GearboxGetEfficiency()====+==== GearboxGetEfficiency() ==== 
 + 
 +  GearboxGetEfficiency(); 
 +  
 Returns initial gearbox efficiency. Returns initial gearbox efficiency.
  
scripting/components/wheeledsimulation.1660085554.txt.gz · Last modified: 2022/08/09 23:52 by jerryhopper

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki