|
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
79 cc_accs.push_front(Ogre::Math::Clamp(acc, -1.0f, +1.0f));
86 for (
unsigned int i = 0; i <
cc_accs.size(); i++)
float ar_avg_wheel_speed
Physics state; avg wheel speed in m/s.
bool cc_mode
Cruise Control.
float cc_target_rpm
Cruise Control.
Ogre::Real ar_brake
Physics state; braking intensity.
bool sl_enabled
Speed limiter;.
float sl_speed_limit
Speed limiter;.
float cc_target_speed_lower_limit
Cruise Control.
void autoSetAcc(float val)
float ar_wheel_speed
Physics state; wheel speed in m/s.
float cc_target_speed
Cruise Control.
float GetEngineRpm() const
std::deque< float > cc_accs
Cruise Control.
void UpdateCruiseControl(float dt)
Defined in 'gameplay/CruiseControl.cpp'.
float GetAccToHoldRPM()
estimate required throttle input to hold the current rpm
float getTotalMass(bool withLocked=true)
int GetGear()
low level gear changing
bool cc_can_brake
Cruise Control.
InputEngine * GetInputEngine()
void cruisecontrolToggle()
Defined in 'gameplay/CruiseControl.cpp'.