mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-11 19:50:33 +00:00
new curves + boat fix
This commit is contained in:
parent
5fd8eec42c
commit
3de003a8e7
2 changed files with 17 additions and 3 deletions
|
@ -431,7 +431,7 @@ CBoat::ProcessControl(void)
|
|||
speedUp = pHandling->fBrakeDeceleration - m_vecMoveSpeed.z;
|
||||
if(speedUp < 0.0f) speedUp = 0.0f;
|
||||
float speedFwd = DotProduct(m_vecMoveSpeed, GetForward());
|
||||
speedFwd *= -m_nDeltaVolumeUnderWater * 0.01f * pHandling->fTractionLoss;
|
||||
speedFwd *= -m_nDeltaVolumeUnderWater * 0.01f * pHandling->fBrakeBias;
|
||||
CVector speed = speedFwd*GetForward() + CVector(0.0f, 0.0f, speedUp);
|
||||
CVector splashImpulse = speed * m_fMass;
|
||||
ApplyMoveForce(splashImpulse);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue