![]() |
Rigs of Rods 2026.01
Soft-body Physics Simulation
|
Designed to be run in physics loop (2khz)
Definition at line 45 of file CmdKeyInertia.h.
Public Member Functions | |
| CmdKeyInertia () | |
| float | CalcCmdKeyDelay (float cmd_input, float dt) |
| int | SetCmdKeyDelay (RoR::CmdKeyInertiaConfig &cfg, float start_delay, float stop_delay, std::string start_function, std::string stop_function) |
| void | ResetCmdKeyDelay () |
| float | GetStartDelay () const |
| float | GetStopDelay () const |
| const std::string & | GetStartFunction () const |
| const std::string & | GetStopFunction () const |
Protected Member Functions | |
| float | CalculateCmdOutput (float time, Ogre::SimpleSpline *spline) |
Protected Attributes | |
| float | m_last_output |
| float | m_start_delay |
| float | m_stop_delay |
| float | m_time |
| std::string | m_start_function |
| Ogre::SimpleSpline * | m_start_spline |
| std::string | m_stop_function |
| Ogre::SimpleSpline * | m_stop_spline |
| RoR::CmdKeyInertia::CmdKeyInertia | ( | ) |
Definition at line 31 of file CmdKeyInertia.cpp.
| float RoR::CmdKeyInertia::CalcCmdKeyDelay | ( | float | cmd_input, |
| float | dt | ||
| ) |
Definition at line 40 of file CmdKeyInertia.cpp.
|
protected |
Definition at line 118 of file CmdKeyInertia.cpp.
|
inline |
Definition at line 53 of file CmdKeyInertia.h.
|
inline |
Definition at line 55 of file CmdKeyInertia.h.
|
inline |
Definition at line 54 of file CmdKeyInertia.h.
|
inline |
Definition at line 56 of file CmdKeyInertia.h.
| void RoR::CmdKeyInertia::ResetCmdKeyDelay | ( | ) |
Definition at line 182 of file CmdKeyInertia.cpp.
| int RoR::CmdKeyInertia::SetCmdKeyDelay | ( | RoR::CmdKeyInertiaConfig & | cfg, |
| float | start_delay, | ||
| float | stop_delay, | ||
| std::string | start_function, | ||
| std::string | stop_function | ||
| ) |
Definition at line 87 of file CmdKeyInertia.cpp.
|
protected |
Definition at line 59 of file CmdKeyInertia.h.
|
protected |
Definition at line 60 of file CmdKeyInertia.h.
|
protected |
Definition at line 63 of file CmdKeyInertia.h.
|
protected |
Definition at line 64 of file CmdKeyInertia.h.
|
protected |
Definition at line 61 of file CmdKeyInertia.h.
|
protected |
Definition at line 65 of file CmdKeyInertia.h.
|
protected |
Definition at line 66 of file CmdKeyInertia.h.
|
protected |
Definition at line 62 of file CmdKeyInertia.h.