![]() |
RigsofRods
Soft-body Physics Simulation
|
Binding of RoR::EngineSim; A land vehicle engine + transmission. More...
#include <EngineClass.h>
Public Member Functions | |
Definition; keyword 'engine' | |
float | getShiftDownRPM () const |
Shift down RPM ('engine' attr #1) More... | |
float | getShiftUpRPM () const |
Shift up RPM ('engine' attr #2) More... | |
float | getEngineTorque () const |
Torque in N/m ('engine' attr #3) More... | |
float | getDiffRatio () const |
Global gear ratio ('engine' attr #4) More... | |
float | getGearRatio (int pos) |
-1=R, 0=N, 1... ('engine' attrs #5[R],#6[N],#7[1]...) More... | |
int | getNumGears () const |
int | getNumGearsRanges () const |
Definition, Keyword 'engoption' | |
float | getEngineInertia () const |
('engoption' attr #1) More... | |
char | getEngineType () const |
't' = truck (default), 'c' = car, 'e' = electric car ('engoption' attr #2) More... | |
bool | isElectric () const |
bool | hasAir () const |
bool | hasTurbo () const |
float | getClutchForce () const |
('engoption' attr #3) More... | |
float | getShiftTime () const |
Time (in seconds) that it takes to shift ('engoption' attr #4) More... | |
float | getClutchTime () const |
Time (in seconds) the clutch takes to apply ('engoption' attr #5) More... | |
float | getPostShiftTime () const |
Time (in seconds) until full torque is transferred ('engoption' attr #6) More... | |
float | getStallRMP () const |
('engoption' attr #7) More... | |
float | getIdleRPM () const |
('engoption' attr #8) More... | |
float | getMaxIdleMixture () const |
Maximum throttle to maintain the idle RPM ('engoption' attr #9) More... | |
float | getMinIdleMixture () const |
Minimum throttle to maintain the idle RPM ('engoption' attr #10) More... | |
float | getBrakingTorque () const |
General state getters | |
float | getAcc () |
float | getClutch () |
float | getCrankFactor () |
float | getRPM () |
float | getSmoke () |
float | getTorque () |
float | getTurboPSI () |
SimGearboxMode | getAutoMode () |
int | getGear () |
int | getGearRange () |
bool | isRunning () |
bool | hasContact () |
Ignition. More... | |
float | getEngineTorque () |
float | getInputShaftRPM () |
float | getDriveRatio () |
float | getEnginePower () |
float | getEnginePower (float rpm) |
float | getTurboPower () |
float | getIdleMixture () |
float | getPrimeMixture () |
autoswitch | getAutoShift () |
float | getAccToHoldRPM () |
estimate required throttle input to hold the current rpm More... | |
float | getWheelSpin () |
Current wheel RPM. More... | |
Shifting diagnostic | |
float | getPostShiftClock () |
float | getShiftClock () |
bool | isPostShifting () |
bool | isShifting () |
int | getShifTargetGear () |
float | getAutoShiftBehavior () |
int | getUpshiftDelayCounter () |
int | getKickdownDelayCounter () |
General state changes | |
void | pushNetworkState (float engine_rpm, float acc, float clutch, int gear, bool running, bool contact, char auto_mode, char auto_select=-1) |
void | setAcc (float val) |
void | autoSetAcc (float val) |
void | setClutch (float clutch) |
void | setRPM (float rpm) |
void | setWheelSpin (float rpm) |
void | setAutoMode (SimGearboxMode mode) |
void | setPrime (bool p) |
void | setHydroPump (float work) |
void | setManualClutch (float val) |
void | setTCaseRatio (float ratio) |
Set current transfer case gear (reduction) ratio. More... | |
void | toggleContact () |
Ignition. More... | |
void | offStart () |
Quick start of vehicle engine. More... | |
void | startEngine () |
Quick engine start. Plays sounds. More... | |
void | stopEngine () |
stall engine More... | |
Shifting | |
void | toggleAutoMode () |
void | autoShiftDown () |
void | autoShiftSet (autoswitch mode) |
void | autoShiftUp () |
void | setGear (int v) |
low level gear changing (bypasses shifting logic) More... | |
void | setGearRange (int v) |
low level gear changing (bypasses shifting logic) More... | |
void | shift (int val) |
Changes gear by a relative offset. Plays sounds. More... | |
void | shiftTo (int val) |
Changes gear to given value. Plays sounds. More... | |
Binding of RoR::EngineSim; A land vehicle engine + transmission.
BeamClass::getEngine()
. Definition at line 26 of file EngineClass.h.
void Script2Game::EngineSimClass::autoSetAcc | ( | float | val | ) |
void Script2Game::EngineSimClass::autoShiftDown | ( | ) |
void Script2Game::EngineSimClass::autoShiftSet | ( | autoswitch | mode | ) |
void Script2Game::EngineSimClass::autoShiftUp | ( | ) |
float Script2Game::EngineSimClass::getAcc | ( | ) |
float Script2Game::EngineSimClass::getAccToHoldRPM | ( | ) |
estimate required throttle input to hold the current rpm
SimGearboxMode Script2Game::EngineSimClass::getAutoMode | ( | ) |
autoswitch Script2Game::EngineSimClass::getAutoShift | ( | ) |
float Script2Game::EngineSimClass::getAutoShiftBehavior | ( | ) |
float Script2Game::EngineSimClass::getBrakingTorque | ( | ) | const |
float Script2Game::EngineSimClass::getClutch | ( | ) |
float Script2Game::EngineSimClass::getClutchForce | ( | ) | const |
('engoption' attr #3)
float Script2Game::EngineSimClass::getClutchTime | ( | ) | const |
Time (in seconds) the clutch takes to apply ('engoption' attr #5)
float Script2Game::EngineSimClass::getCrankFactor | ( | ) |
float Script2Game::EngineSimClass::getDiffRatio | ( | ) | const |
Global gear ratio ('engine' attr #4)
float Script2Game::EngineSimClass::getDriveRatio | ( | ) |
float Script2Game::EngineSimClass::getEngineInertia | ( | ) | const |
('engoption' attr #1)
float Script2Game::EngineSimClass::getEnginePower | ( | ) |
float Script2Game::EngineSimClass::getEnginePower | ( | float | rpm | ) |
float Script2Game::EngineSimClass::getEngineTorque | ( | ) |
float Script2Game::EngineSimClass::getEngineTorque | ( | ) | const |
Torque in N/m ('engine' attr #3)
char Script2Game::EngineSimClass::getEngineType | ( | ) | const |
't' = truck (default), 'c' = car, 'e' = electric car ('engoption' attr #2)
int Script2Game::EngineSimClass::getGear | ( | ) |
int Script2Game::EngineSimClass::getGearRange | ( | ) |
float Script2Game::EngineSimClass::getGearRatio | ( | int | pos | ) |
-1=R, 0=N, 1... ('engine' attrs #5[R],#6[N],#7[1]...)
float Script2Game::EngineSimClass::getIdleMixture | ( | ) |
float Script2Game::EngineSimClass::getIdleRPM | ( | ) | const |
('engoption' attr #8)
float Script2Game::EngineSimClass::getInputShaftRPM | ( | ) |
int Script2Game::EngineSimClass::getKickdownDelayCounter | ( | ) |
float Script2Game::EngineSimClass::getMaxIdleMixture | ( | ) | const |
Maximum throttle to maintain the idle RPM ('engoption' attr #9)
float Script2Game::EngineSimClass::getMinIdleMixture | ( | ) | const |
Minimum throttle to maintain the idle RPM ('engoption' attr #10)
int Script2Game::EngineSimClass::getNumGears | ( | ) | const |
int Script2Game::EngineSimClass::getNumGearsRanges | ( | ) | const |
float Script2Game::EngineSimClass::getPostShiftClock | ( | ) |
float Script2Game::EngineSimClass::getPostShiftTime | ( | ) | const |
Time (in seconds) until full torque is transferred ('engoption' attr #6)
float Script2Game::EngineSimClass::getPrimeMixture | ( | ) |
float Script2Game::EngineSimClass::getRPM | ( | ) |
int Script2Game::EngineSimClass::getShifTargetGear | ( | ) |
float Script2Game::EngineSimClass::getShiftClock | ( | ) |
float Script2Game::EngineSimClass::getShiftDownRPM | ( | ) | const |
Shift down RPM ('engine' attr #1)
float Script2Game::EngineSimClass::getShiftTime | ( | ) | const |
Time (in seconds) that it takes to shift ('engoption' attr #4)
float Script2Game::EngineSimClass::getShiftUpRPM | ( | ) | const |
Shift up RPM ('engine' attr #2)
float Script2Game::EngineSimClass::getSmoke | ( | ) |
float Script2Game::EngineSimClass::getStallRMP | ( | ) | const |
('engoption' attr #7)
float Script2Game::EngineSimClass::getTorque | ( | ) |
float Script2Game::EngineSimClass::getTurboPower | ( | ) |
float Script2Game::EngineSimClass::getTurboPSI | ( | ) |
int Script2Game::EngineSimClass::getUpshiftDelayCounter | ( | ) |
float Script2Game::EngineSimClass::getWheelSpin | ( | ) |
Current wheel RPM.
bool Script2Game::EngineSimClass::hasAir | ( | ) | const |
bool Script2Game::EngineSimClass::hasContact | ( | ) |
Ignition.
bool Script2Game::EngineSimClass::hasTurbo | ( | ) | const |
bool Script2Game::EngineSimClass::isElectric | ( | ) | const |
bool Script2Game::EngineSimClass::isPostShifting | ( | ) |
bool Script2Game::EngineSimClass::isRunning | ( | ) |
bool Script2Game::EngineSimClass::isShifting | ( | ) |
void Script2Game::EngineSimClass::offStart | ( | ) |
Quick start of vehicle engine.
void Script2Game::EngineSimClass::pushNetworkState | ( | float | engine_rpm, |
float | acc, | ||
float | clutch, | ||
int | gear, | ||
bool | running, | ||
bool | contact, | ||
char | auto_mode, | ||
char | auto_select = -1 |
||
) |
void Script2Game::EngineSimClass::setAcc | ( | float | val | ) |
void Script2Game::EngineSimClass::setAutoMode | ( | SimGearboxMode | mode | ) |
void Script2Game::EngineSimClass::setClutch | ( | float | clutch | ) |
void Script2Game::EngineSimClass::setGear | ( | int | v | ) |
low level gear changing (bypasses shifting logic)
void Script2Game::EngineSimClass::setGearRange | ( | int | v | ) |
low level gear changing (bypasses shifting logic)
void Script2Game::EngineSimClass::setHydroPump | ( | float | work | ) |
void Script2Game::EngineSimClass::setManualClutch | ( | float | val | ) |
void Script2Game::EngineSimClass::setPrime | ( | bool | p | ) |
void Script2Game::EngineSimClass::setRPM | ( | float | rpm | ) |
void Script2Game::EngineSimClass::setTCaseRatio | ( | float | ratio | ) |
Set current transfer case gear (reduction) ratio.
void Script2Game::EngineSimClass::setWheelSpin | ( | float | rpm | ) |
void Script2Game::EngineSimClass::shift | ( | int | val | ) |
Changes gear by a relative offset. Plays sounds.
void Script2Game::EngineSimClass::shiftTo | ( | int | val | ) |
Changes gear to given value. Plays sounds.
void Script2Game::EngineSimClass::startEngine | ( | ) |
Quick engine start. Plays sounds.
void Script2Game::EngineSimClass::stopEngine | ( | ) |
stall engine
void Script2Game::EngineSimClass::toggleAutoMode | ( | ) |
void Script2Game::EngineSimClass::toggleContact | ( | ) |
Ignition.