mirror of https://github.com/GTAmodding/re3.git
Partially fix boat physics at high FPS.
This commit is contained in:
parent
cae0a3f402
commit
613f0964bb
|
@ -533,6 +533,10 @@ CBoat::ProcessControl(void)
|
|||
m_vecTurnSpeed.y *= fy;
|
||||
m_vecTurnSpeed.z *= fz;
|
||||
float forceUp = (magic - 1.0f) * m_vecTurnSpeed.x * m_fTurnMass;
|
||||
#ifdef FIX_BUGS
|
||||
// Partly fixes boat perf at high FPS
|
||||
forceUp *= CTimer::GetTimeStepFix();
|
||||
#endif
|
||||
m_vecTurnSpeed = Multiply3x3(GetMatrix(), m_vecTurnSpeed); // back to world
|
||||
CVector com = Multiply3x3(GetMatrix(), m_vecCentreOfMass);
|
||||
ApplyTurnForce(forceUp*GetUp(), com + GetForward());
|
||||
|
|
Loading…
Reference in New Issue