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
This commit is contained in:
parent
2dc3ee6e4e
commit
3181234515
|
@ -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));
|
mu = wheel->mu * (wheel->lfMin + (wheel->lfMax - wheel->lfMin) * exp(wheel->lfK * wheel->forces.z / wheel->opLoad));
|
||||||
|
|
||||||
//temperature and degradation
|
//temperature and degradation
|
||||||
if (car->features & FEAT_TIRETEMPDEG)
|
if (car->features & FEAT_TIRETEMPDEG && car->carElt->_skillLevel > 3)
|
||||||
{
|
{
|
||||||
tireCond = wheel->currentGripFactor;
|
tireCond = wheel->currentGripFactor;
|
||||||
mu *= tireCond;
|
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 */
|
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 New Issue