diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-12-08 10:00:24 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-12-08 10:00:24 +0100 |
commit | 016ff5b4aa98ed24938284bfbf6db9373981a5de (patch) | |
tree | 8ea809158b4ade6e2d6ecd70453e6a9766b25cd0 /src/vehicles | |
parent | pool stuff fix (diff) | |
parent | Pool fixes from master (diff) | |
download | re3-016ff5b4aa98ed24938284bfbf6db9373981a5de.tar re3-016ff5b4aa98ed24938284bfbf6db9373981a5de.tar.gz re3-016ff5b4aa98ed24938284bfbf6db9373981a5de.tar.bz2 re3-016ff5b4aa98ed24938284bfbf6db9373981a5de.tar.lz re3-016ff5b4aa98ed24938284bfbf6db9373981a5de.tar.xz re3-016ff5b4aa98ed24938284bfbf6db9373981a5de.tar.zst re3-016ff5b4aa98ed24938284bfbf6db9373981a5de.zip |
Diffstat (limited to 'src/vehicles')
-rw-r--r-- | src/vehicles/Bike.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vehicles/Bike.cpp b/src/vehicles/Bike.cpp index 30d63aca..faf31077 100644 --- a/src/vehicles/Bike.cpp +++ b/src/vehicles/Bike.cpp @@ -202,7 +202,7 @@ CVector vecTestResistance(0.9995f, 0.9f, 0.95f); float fDAxisX = 1.0f; float fDAxisXExtra = 100.0f; float fDAxisY = 1000.0f; -float fInAirXRes = 0.88f; +float fInAirXRes = 0.98f; float fFlySpeedMult = -0.6f; void @@ -1213,7 +1213,8 @@ CBike::ProcessControl(void) // Balance bike if(bBalancedByRider || bIsBeingPickedUp || bIsStanding){ - float onSideness = clamp(DotProduct(GetRight(), m_vecAvgSurfaceNormal), -1.0f, 1.0f); + float onSideness = DotProduct(GetRight(), m_vecAvgSurfaceNormal); + onSideness = clamp(onSideness, -1.0f, 1.0f); CVector worldCOM = Multiply3x3(GetMatrix(), m_vecCentreOfMass); // Keep bike upright if(bBalancedByRider){ |