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

#include <ForceFeedback.h>

Public Member Functions

void Setup ()
 
void SetEnabled (bool v)
 
void Update ()
 Reads data from simulation. More...
 

Private Member Functions

void SetForces (float roll, float pitch, float wspeed, float dircommand, float stress)
 Called by Update(); we take here : -roll and pitch inertial forces at the camera: this is not used currently, but it can be used for 2 axes force feedback devices, like FF joysticks, to render shocks -wheel speed and direction command, for the artificial auto-centering (which is wheel speed dependant) -hydro beam stress, the ideal data source for FF wheels. More...
 

Private Attributes

OIS::ForceFeedback * m_device = nullptr
 
OIS::Effect * m_hydro_effect = nullptr
 
bool m_enabled = false
 

Detailed Description

Definition at line 29 of file ForceFeedback.h.

Member Function Documentation

◆ SetEnabled()

void RoR::ForceFeedback::SetEnabled ( bool  v)

Definition at line 93 of file ForceFeedback.cpp.

+ Here is the caller graph for this function:

◆ SetForces()

void RoR::ForceFeedback::SetForces ( float  roll,
float  pitch,
float  wspeed,
float  dircommand,
float  stress 
)
private

Called by Update(); we take here : -roll and pitch inertial forces at the camera: this is not used currently, but it can be used for 2 axes force feedback devices, like FF joysticks, to render shocks -wheel speed and direction command, for the artificial auto-centering (which is wheel speed dependant) -hydro beam stress, the ideal data source for FF wheels.

Definition at line 51 of file ForceFeedback.cpp.

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

◆ Setup()

void RoR::ForceFeedback::Setup ( )

Definition at line 35 of file ForceFeedback.cpp.

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

◆ Update()

void RoR::ForceFeedback::Update ( )

Reads data from simulation.

Definition at line 105 of file ForceFeedback.cpp.

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

Field Documentation

◆ m_device

OIS::ForceFeedback* RoR::ForceFeedback::m_device = nullptr
private

Definition at line 45 of file ForceFeedback.h.

◆ m_enabled

bool RoR::ForceFeedback::m_enabled = false
private

Definition at line 47 of file ForceFeedback.h.

◆ m_hydro_effect

OIS::Effect* RoR::ForceFeedback::m_hydro_effect = nullptr
private

Definition at line 46 of file ForceFeedback.h.


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