![]() |
Rigs of Rods 2026.01
Soft-body Physics Simulation
|
Designed to be run on main/rendering loop (FPS)
Definition at line 72 of file CmdKeyInertia.h.
Public Member Functions | |
| void | SetSimpleDelay (RoR::CmdKeyInertiaConfig &cfg, float start_delay, float stop_delay, std::string start_function, std::string stop_function) |
| float | CalcSimpleDelay (bool input, float dt) |
Private Attributes | |
| bool | m_last_input = false |
| float | m_start_delay = 0 |
| float | m_stop_delay = 0 |
| float | m_spline_time = 0 |
| Ogre::SimpleSpline * | m_start_spline = nullptr |
| Ogre::SimpleSpline * | m_stop_spline = nullptr |
| float RoR::SimpleInertia::CalcSimpleDelay | ( | bool | input, |
| float | dt | ||
| ) |
Expected to be invoked in main/rendering loop, once per frame. The dt is in seconds.
Definition at line 218 of file CmdKeyInertia.cpp.
| void RoR::SimpleInertia::SetSimpleDelay | ( | RoR::CmdKeyInertiaConfig & | cfg, |
| float | start_delay, | ||
| float | stop_delay, | ||
| std::string | start_function, | ||
| std::string | stop_function | ||
| ) |
Definition at line 191 of file CmdKeyInertia.cpp.
|
private |
Definition at line 81 of file CmdKeyInertia.h.
|
private |
Definition at line 84 of file CmdKeyInertia.h.
|
private |
Definition at line 82 of file CmdKeyInertia.h.
|
private |
Definition at line 85 of file CmdKeyInertia.h.
|
private |
Definition at line 83 of file CmdKeyInertia.h.
|
private |
Definition at line 86 of file CmdKeyInertia.h.