mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-22 09:09:15 +01:00
fix jittery cars at 15fps
This commit is contained in:
parent
e2ae17d994
commit
37b6d491e7
@ -498,11 +498,12 @@ CVehicle::ProcessWheel(CVector &wheelFwd, CVector &wheelRight, CVector &wheelCon
|
||||
if(contactSpeedRight != 0.0f){
|
||||
// exert opposing force
|
||||
right = -contactSpeedRight/wheelsOnGround;
|
||||
#ifdef FIX_BUGS
|
||||
// BUG?
|
||||
// contactSpeedRight is independent of framerate but right has timestep as a factor
|
||||
// so we probably have to fix this
|
||||
right *= CTimer::GetTimeStepFix();
|
||||
#endif
|
||||
// fixing this causes jittery cars at 15fps, and causes the car to move backwards slowly at 18fps
|
||||
// at 19fps, the effects are gone ...
|
||||
//right *= CTimer::GetTimeStepFix();
|
||||
|
||||
if(wheelStatus == WHEEL_STATUS_BURST){
|
||||
float fwdspeed = Min(contactSpeedFwd, fBurstSpeedMax);
|
||||
|
Loading…
Reference in New Issue
Block a user