RigsofRods
Soft-body Physics Simulation
Public Member Functions | Protected Member Functions | Protected Attributes
RoR::CmdKeyInertia Class Reference

Designed to be run in physics loop (2khz) More...

#include <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 ()
 

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
 
Ogre::SimpleSpline * m_start_spline
 
Ogre::SimpleSpline * m_stop_spline
 

Detailed Description

Designed to be run in physics loop (2khz)

Definition at line 45 of file CmdKeyInertia.h.

Constructor & Destructor Documentation

◆ CmdKeyInertia()

RoR::CmdKeyInertia::CmdKeyInertia ( )

Definition at line 31 of file CmdKeyInertia.cpp.

Member Function Documentation

◆ CalcCmdKeyDelay()

float RoR::CmdKeyInertia::CalcCmdKeyDelay ( float  cmd_input,
float  dt 
)

Definition at line 40 of file CmdKeyInertia.cpp.

+ Here is the caller graph for this function:

◆ CalculateCmdOutput()

float RoR::CmdKeyInertia::CalculateCmdOutput ( float  time,
Ogre::SimpleSpline *  spline 
)
protected

Definition at line 116 of file CmdKeyInertia.cpp.

◆ ResetCmdKeyDelay()

void RoR::CmdKeyInertia::ResetCmdKeyDelay ( )

Definition at line 180 of file CmdKeyInertia.cpp.

◆ SetCmdKeyDelay()

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.

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

Field Documentation

◆ m_last_output

float RoR::CmdKeyInertia::m_last_output
protected

Definition at line 55 of file CmdKeyInertia.h.

◆ m_start_delay

float RoR::CmdKeyInertia::m_start_delay
protected

Definition at line 56 of file CmdKeyInertia.h.

◆ m_start_spline

Ogre::SimpleSpline* RoR::CmdKeyInertia::m_start_spline
protected

Definition at line 59 of file CmdKeyInertia.h.

◆ m_stop_delay

float RoR::CmdKeyInertia::m_stop_delay
protected

Definition at line 57 of file CmdKeyInertia.h.

◆ m_stop_spline

Ogre::SimpleSpline* RoR::CmdKeyInertia::m_stop_spline
protected

Definition at line 60 of file CmdKeyInertia.h.

◆ m_time

float RoR::CmdKeyInertia::m_time
protected

Definition at line 58 of file CmdKeyInertia.h.


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