SimUV4.1: Fixed Grip Factor when using Arcade/Rookie/Amateur player modes
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9348 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 0f1da1501467d0b762a890d0470e3002355f7cb0 Former-commit-id: 83fc787c899157a8ad888036a989b749632850de
This commit is contained in:
parent
548d5e2b39
commit
caf11bc0fa
1 changed files with 6 additions and 1 deletions
|
@ -662,11 +662,16 @@ void SimWheelUpdateForce(tCar *car, int index)
|
|||
mu = wheel->mu * (wheel->lfMin + (wheel->lfMax - wheel->lfMin) * exp(wheel->lfK * wheel->forces.z / wheel->opLoad));
|
||||
|
||||
//temperature and degradation
|
||||
if (car->features & FEAT_TIRETEMPDEG)
|
||||
if (car->features & FEAT_TIRETEMPDEG && car->carElt->_skillLevel > 3)
|
||||
{
|
||||
tireCond = wheel->currentGripFactor;
|
||||
mu *= tireCond;
|
||||
}
|
||||
else
|
||||
{
|
||||
tireCond = 1;
|
||||
mu *= tireCond;
|
||||
}
|
||||
|
||||
F *= wheel->forces.z * mu * wheel->trkPos.seg->surface->kFriction * (1.0f + 0.05f * sin((-wheel->staticPos.ax + camberDelta) * 18.0f)); /* coeff */
|
||||
|
||||
|
|
Loading…
Reference in a new issue