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

Land vehicle feat Simulates tyre pressurization by adjusting springness of in-wheel beams. More...

#include <TyrePressure.h>

+ Collaboration diagram for RoR::TyrePressure:

Public Member Functions

 TyrePressure (ActorPtr a)
 
void AddBeam (int beam_id)
 
bool IsEnabled () const
 
void UpdateInputEvents (float dt)
 
bool ModifyTyrePressure (float v)
 
float GetCurPressure () const
 
bool IsPressurizing () const
 

Private Attributes

ActorPtr m_actor
 
std::vector< int > m_pressure_beams
 
bool m_pressure_pressed = false
 
float m_pressure_pressed_timer = 0.f
 
float m_ref_tyre_pressure = 50.f
 

Detailed Description

Land vehicle feat Simulates tyre pressurization by adjusting springness of in-wheel beams.

Definition at line 41 of file TyrePressure.h.

Constructor & Destructor Documentation

◆ TyrePressure()

RoR::TyrePressure::TyrePressure ( ActorPtr  a)
inline

Definition at line 44 of file TyrePressure.h.

Member Function Documentation

◆ AddBeam()

void RoR::TyrePressure::AddBeam ( int  beam_id)
inline

Definition at line 46 of file TyrePressure.h.

+ Here is the caller graph for this function:

◆ GetCurPressure()

float RoR::TyrePressure::GetCurPressure ( ) const
inline

Definition at line 50 of file TyrePressure.h.

◆ IsEnabled()

bool RoR::TyrePressure::IsEnabled ( ) const
inline

Definition at line 47 of file TyrePressure.h.

+ Here is the caller graph for this function:

◆ IsPressurizing()

bool RoR::TyrePressure::IsPressurizing ( ) const
inline

Definition at line 51 of file TyrePressure.h.

◆ ModifyTyrePressure()

bool TyrePressure::ModifyTyrePressure ( float  v)

Definition at line 64 of file TyrePressure.cpp.

+ Here is the caller graph for this function:

◆ UpdateInputEvents()

void TyrePressure::UpdateInputEvents ( float  dt)

Definition at line 32 of file TyrePressure.cpp.

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

Field Documentation

◆ m_actor

ActorPtr RoR::TyrePressure::m_actor
private

Definition at line 54 of file TyrePressure.h.

◆ m_pressure_beams

std::vector<int> RoR::TyrePressure::m_pressure_beams
private

Definition at line 55 of file TyrePressure.h.

◆ m_pressure_pressed

bool RoR::TyrePressure::m_pressure_pressed = false
private

Definition at line 56 of file TyrePressure.h.

◆ m_pressure_pressed_timer

float RoR::TyrePressure::m_pressure_pressed_timer = 0.f
private

Definition at line 57 of file TyrePressure.h.

◆ m_ref_tyre_pressure

float RoR::TyrePressure::m_ref_tyre_pressure = 50.f
private

Definition at line 58 of file TyrePressure.h.


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