RigsofRods
Soft-body Physics Simulation
|
#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< DiffType > | m_available_diffs |
Definition at line 66 of file Differentials.h.
|
inline |
Definition at line 69 of file Differentials.h.
|
inline |
void Differential::CalcAxleTorque | ( | DifferentialData & | diff_data | ) |
|
static |
ensures both wheels rotate at the the same speed
Definition at line 118 of file Differentials.cpp.
|
static |
more power goes to the faster spining wheel
Definition at line 69 of file Differentials.cpp.
|
static |
a differential that always splits the torque evenly, this is the original method
Definition at line 64 of file Differentials.cpp.
|
static |
more power goes to the slower spining wheel
Definition at line 98 of file Differentials.cpp.
|
inline |
Ogre::UTFString Differential::GetDifferentialTypeName | ( | ) |
Definition at line 49 of file Differentials.cpp.
|
inline |
void Differential::ToggleDifferentialMode | ( | ) |
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.
int RoR::Differential::di_idx_1 |
array location of wheel / axle 1
Definition at line 69 of file Differentials.h.
int RoR::Differential::di_idx_2 |
array location of wheel / axle 2
Definition at line 72 of file Differentials.h.
|
private |
Definition at line 88 of file Differentials.h.