RigsofRods
Soft-body Physics Simulation
Public Member Functions | Static Public Member Functions | Data Fields | Private Attributes
RoR::Differential Class Reference

#include <Differentials.h>

Public Member Functions

 Differential ()
 
void AddDifferentialType (DiffType diff)
 
void ToggleDifferentialMode ()
 
void CalcAxleTorque (DifferentialData &diff_data)
 
Ogre::UTFString GetDifferentialTypeName ()
 
DiffType GetActiveDiffType () const
 
int GetNumDiffTypes ()
 

Static Public Member Functions

static void CalcSeparateDiff (DifferentialData &diff_data)
 a differential that always splits the torque evenly, this is the original method More...
 
static void CalcOpenDiff (DifferentialData &diff_data)
 more power goes to the faster spining wheel More...
 
static void CalcViscousDiff (DifferentialData &diff_data)
 more power goes to the slower spining wheel More...
 
static void CalcLockedDiff (DifferentialData &diff_data)
 ensures both wheels rotate at the the same speed More...
 

Data Fields

int di_idx_1
 array location of wheel / axle 1 More...
 
int di_idx_2
 array location of wheel / axle 2 More...
 
float di_delta_rotation
 difference of rotational position between two wheels/axles... a kludge at best More...
 

Private Attributes

std::vector< DiffTypem_available_diffs
 

Detailed Description

Definition at line 66 of file Differentials.h.

Constructor & Destructor Documentation

◆ Differential()

RoR::Differential::Differential ( )
inline

Definition at line 69 of file Differentials.h.

Member Function Documentation

◆ AddDifferentialType()

void RoR::Differential::AddDifferentialType ( DiffType  diff)
inline

Definition at line 75 of file Differentials.h.

+ Here is the caller graph for this function:

◆ CalcAxleTorque()

void Differential::CalcAxleTorque ( DifferentialData diff_data)

Definition at line 35 of file Differentials.cpp.

+ Here is the call graph for this function:

◆ CalcLockedDiff()

void Differential::CalcLockedDiff ( DifferentialData diff_data)
static

ensures both wheels rotate at the the same speed

Definition at line 118 of file Differentials.cpp.

+ Here is the caller graph for this function:

◆ CalcOpenDiff()

void Differential::CalcOpenDiff ( DifferentialData diff_data)
static

more power goes to the faster spining wheel

Definition at line 69 of file Differentials.cpp.

+ Here is the caller graph for this function:

◆ CalcSeparateDiff()

void Differential::CalcSeparateDiff ( DifferentialData diff_data)
static

a differential that always splits the torque evenly, this is the original method

Definition at line 64 of file Differentials.cpp.

+ Here is the caller graph for this function:

◆ CalcViscousDiff()

void Differential::CalcViscousDiff ( DifferentialData diff_data)
static

more power goes to the slower spining wheel

Definition at line 98 of file Differentials.cpp.

+ Here is the caller graph for this function:

◆ GetActiveDiffType()

DiffType RoR::Differential::GetActiveDiffType ( ) const
inline

Definition at line 79 of file Differentials.h.

+ Here is the caller graph for this function:

◆ GetDifferentialTypeName()

Ogre::UTFString Differential::GetDifferentialTypeName ( )

Definition at line 49 of file Differentials.cpp.

◆ GetNumDiffTypes()

int RoR::Differential::GetNumDiffTypes ( )
inline

Definition at line 80 of file Differentials.h.

+ Here is the caller graph for this function:

◆ ToggleDifferentialMode()

void Differential::ToggleDifferentialMode ( )

Definition at line 27 of file Differentials.cpp.

+ Here is the caller graph for this function:

Field Documentation

◆ di_delta_rotation

float RoR::Differential::di_delta_rotation

difference of rotational position between two wheels/axles... a kludge at best

Definition at line 73 of file Differentials.h.

◆ di_idx_1

int RoR::Differential::di_idx_1

array location of wheel / axle 1

Definition at line 69 of file Differentials.h.

◆ di_idx_2

int RoR::Differential::di_idx_2

array location of wheel / axle 2

Definition at line 72 of file Differentials.h.

◆ m_available_diffs

std::vector<DiffType> RoR::Differential::m_available_diffs
private

Definition at line 88 of file Differentials.h.


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