More detailed comments in wheel.cpp.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@6206 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 7757472825844bb2225cccfee2364572eedf1886 Former-commit-id: 228276c8966bc851249a061b3433c1a501e09881
This commit is contained in:
parent
3246d43442
commit
75273923f0
1 changed files with 4 additions and 2 deletions
|
@ -226,10 +226,12 @@ void SimWheelUpdateForce(tCar *car, int index)
|
|||
}
|
||||
} else {
|
||||
if (wheel->state & SIM_SUSP_EXT) {
|
||||
/* calculate the force needed to reach susp->spring.xMax */
|
||||
/* calculate the force needed to reach susp->spring.xMax
|
||||
* it becomes 0 from the 2. time step being extended
|
||||
* works even if both SIM_SUSP_EXT and SIM_WH_INAIR is set */
|
||||
wheel->forces.z = -wheel->susp.a * wheel->mass / wheel->susp.spring.bellcrank;
|
||||
wheel->susp.v = 0.0f;
|
||||
} else { //SIM_WH_INAIR
|
||||
} else { //SIM_WH_INAIR is set, but SIM_SUSP_EXT is not
|
||||
wheel->forces.z = axleFz + wheel->susp.force + wheel->axleFz3rd;
|
||||
if (car->features & FEAT_FIXEDWHEELFORCE) {
|
||||
wheel->susp.v -= wheel->susp.spring.bellcrank * SimDeltaTime * wheel->forces.z / wheel->mass;
|
||||
|
|
Loading…
Reference in a new issue