mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-25 06:35:40 +00:00
fix jittery cars at 15fps
This commit is contained in:
parent
0b269571d7
commit
ffe199290b
1 changed files with 4 additions and 3 deletions
|
@ -812,11 +812,12 @@ CVehicle::ProcessWheel(CVector &wheelFwd, CVector &wheelRight, CVector &wheelCon
|
||||||
if(contactSpeedRight != 0.0f){
|
if(contactSpeedRight != 0.0f){
|
||||||
// exert opposing force
|
// exert opposing force
|
||||||
right = -contactSpeedRight/wheelsOnGround;
|
right = -contactSpeedRight/wheelsOnGround;
|
||||||
#ifdef FIX_BUGS
|
// BUG?
|
||||||
// contactSpeedRight is independent of framerate but right has timestep as a factor
|
// contactSpeedRight is independent of framerate but right has timestep as a factor
|
||||||
// so we probably have to fix this
|
// so we probably have to fix this
|
||||||
right *= CTimer::GetTimeStepFix();
|
// fixing this causes jittery cars at 15fps, and causes the car to move backwards slowly at 18fps
|
||||||
#endif
|
// at 19fps, the effects are gone ...
|
||||||
|
//right *= CTimer::GetTimeStepFix();
|
||||||
|
|
||||||
if(wheelStatus == WHEEL_STATUS_BURST){
|
if(wheelStatus == WHEEL_STATUS_BURST){
|
||||||
float fwdspeed = Min(contactSpeedFwd, fBurstSpeedMax);
|
float fwdspeed = Min(contactSpeedFwd, fBurstSpeedMax);
|
||||||
|
|
Loading…
Reference in a new issue