Rigs of Rods
2023.09
Soft-body Physics Simulation
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
source
main
utils
ForceFeedback.h
Go to the documentation of this file.
1
/*
2
This source file is part of Rigs of Rods
3
Copyright 2005-2012 Pierre-Michel Ricordel
4
Copyright 2007-2012 Thomas Fischer
5
Copyright 2013-2020 Petr Ohlidal
6
7
For more information, see http://www.rigsofrods.org/
8
9
Rigs of Rods is free software: you can redistribute it and/or modify
10
it under the terms of the GNU General Public License version 3, as
11
published by the Free Software Foundation.
12
13
Rigs of Rods is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
17
18
You should have received a copy of the GNU General Public License
19
along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
22
#pragma once
23
24
// Forward decl.
25
namespace
OIS
{
class
ForceFeedback;
class
Effect; }
26
27
namespace
RoR
{
28
29
class
ForceFeedback
30
{
31
public
:
32
void
Setup
();
33
void
SetEnabled
(
bool
v);
34
36
void
Update
();
37
38
private
:
43
void
SetForces
(
float
roll,
float
pitch,
float
wspeed,
float
dircommand,
float
stress);
44
45
OIS::ForceFeedback*
m_device
=
nullptr
;
46
OIS::Effect*
m_hydro_effect
=
nullptr
;
47
bool
m_enabled
=
false
;
48
};
29
class
ForceFeedback
{
…
};
49
50
}
// namespace RoR
RoR::ForceFeedback
Definition
ForceFeedback.h:30
RoR::ForceFeedback::m_device
OIS::ForceFeedback * m_device
Definition
ForceFeedback.h:45
RoR::ForceFeedback::SetEnabled
void SetEnabled(bool v)
Definition
ForceFeedback.cpp:93
RoR::ForceFeedback::Update
void Update()
Reads data from simulation.
Definition
ForceFeedback.cpp:105
RoR::ForceFeedback::m_hydro_effect
OIS::Effect * m_hydro_effect
Definition
ForceFeedback.h:46
RoR::ForceFeedback::Setup
void Setup()
Definition
ForceFeedback.cpp:35
RoR::ForceFeedback::m_enabled
bool m_enabled
Definition
ForceFeedback.h:47
RoR::ForceFeedback::SetForces
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 cu...
Definition
ForceFeedback.cpp:51
OIS
Definition
ForceFeedback.h:25
RoR
Definition
AppContext.h:36
Generated on Fri Jan 2 2026 09:37:03 for Rigs of Rods by
1.9.8