RigsofRods
Soft-body Physics Simulation
Public Member Functions | Private Attributes
RoR::SimpleInertia Class Reference

Designed to be run on main/rendering loop (FPS) More...

#include <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)
 Expected to be invoked in main/rendering loop, once per frame. The dt is in seconds. More...
 

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
 

Detailed Description

Designed to be run on main/rendering loop (FPS)

Definition at line 66 of file CmdKeyInertia.h.

Member Function Documentation

◆ CalcSimpleDelay()

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 216 of file CmdKeyInertia.cpp.

◆ SetSimpleDelay()

void RoR::SimpleInertia::SetSimpleDelay ( RoR::CmdKeyInertiaConfig cfg,
float  start_delay,
float  stop_delay,
std::string  start_function,
std::string  stop_function 
)

Definition at line 189 of file CmdKeyInertia.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ m_last_input

bool RoR::SimpleInertia::m_last_input = false
private

Definition at line 75 of file CmdKeyInertia.h.

◆ m_spline_time

float RoR::SimpleInertia::m_spline_time = 0
private

Definition at line 78 of file CmdKeyInertia.h.

◆ m_start_delay

float RoR::SimpleInertia::m_start_delay = 0
private

Definition at line 76 of file CmdKeyInertia.h.

◆ m_start_spline

Ogre::SimpleSpline* RoR::SimpleInertia::m_start_spline = nullptr
private

Definition at line 79 of file CmdKeyInertia.h.

◆ m_stop_delay

float RoR::SimpleInertia::m_stop_delay = 0
private

Definition at line 77 of file CmdKeyInertia.h.

◆ m_stop_spline

Ogre::SimpleSpline* RoR::SimpleInertia::m_stop_spline = nullptr
private

Definition at line 80 of file CmdKeyInertia.h.


The documentation for this class was generated from the following files: