mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 02:12:43 +01:00
- make AddWheelForcesDriver1 a bit prettier
This commit is contained in:
parent
430923a51b
commit
506a73c5de
@ -358,7 +358,7 @@ void AddWheelForcesDriver1(CAR_DATA* cp, CAR_LOCALS* cl)
|
||||
if (ABS(pointVel[0]) + ABS(pointVel[2]) < 8000)
|
||||
{
|
||||
surfaceNormal[0] = 0;
|
||||
surfaceNormal[1] = 0x1000;
|
||||
surfaceNormal[1] = ONE;
|
||||
surfaceNormal[2] = 0;
|
||||
}
|
||||
}
|
||||
@ -422,11 +422,11 @@ void AddWheelForcesDriver1(CAR_DATA* cp, CAR_LOCALS* cl)
|
||||
else
|
||||
{
|
||||
// front wheels
|
||||
sidevel = frontFS * slidevel + 0x800 >> 0xc;
|
||||
sidevel = frontFS * slidevel + 2048 >> 12;
|
||||
|
||||
if (wheel->locked)
|
||||
{
|
||||
sidevel = (frontFS * slidevel + 0x800 >> 0xd) + sidevel >> 1;
|
||||
sidevel = (frontFS * slidevel + 2048 >> 13) + sidevel >> 1;
|
||||
|
||||
forcefac = FixHalfRound(FIXEDH(-sidevel * lfx) * sdz - FIXEDH(-sidevel * lfz) * sdx, 11);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user