|
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
24 #include <OgreUTFString.h>
46 TransferCase(
int a1,
int a2,
bool has_2wd,
bool has_2wd_lo, std::vector<float> grs):
int tr_ax_2
This axle is only driven in 4WD mode.
static void CalcSeparateDiff(DifferentialData &diff_data)
a differential that always splits the torque evenly, this is the original method
void CalcAxleTorque(DifferentialData &diff_data)
bool tr_2wd_lo
Does it support 2WD Lo mode?
DiffType GetActiveDiffType() const
Ogre::UTFString GetDifferentialTypeName()
bool tr_2wd
Does it support 2WD mode?
bool tr_4wd_mode
Enables 4WD mode.
static void CalcViscousDiff(DifferentialData &diff_data)
more power goes to the slower spining wheel
std::vector< float > tr_gear_ratios
Gear reduction ratios.
int di_idx_2
array location of wheel / axle 2
static void CalcLockedDiff(DifferentialData &diff_data)
ensures both wheels rotate at the the same speed
void AddDifferentialType(DiffType diff)
static void CalcOpenDiff(DifferentialData &diff_data)
more power goes to the faster spining wheel
void ToggleDifferentialMode()
int tr_ax_1
This axle is always driven.
int di_idx_1
array location of wheel / axle 1
float di_delta_rotation
difference of rotational position between two wheels/axles... a kludge at best
TransferCase(int a1, int a2, bool has_2wd, bool has_2wd_lo, std::vector< float > grs)
std::vector< DiffType > m_available_diffs