summaryrefslogtreecommitdiff
path: root/src/vehicles/Vehicle.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-08-17 09:46:11 +0200
committeraap <aap@papnet.eu>2021-08-17 09:46:11 +0200
commit7374fbf54cacb4c020e2185d5f4d01e9f65875a2 (patch)
treebb9d7b0dba9e9c08b6aa77c8c85c2a361810b5c2 /src/vehicles/Vehicle.cpp
parent0c55f331cf258c57abba3ed70aa4e8ad25aef0b9 (diff)
fixed car handling!!!!!!!
Diffstat (limited to 'src/vehicles/Vehicle.cpp')
-rw-r--r--src/vehicles/Vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp
index 7784bc07..591a9f83 100644
--- a/src/vehicles/Vehicle.cpp
+++ b/src/vehicles/Vehicle.cpp
@@ -965,7 +965,7 @@ CVehicle::ProcessWheel(CVector &wheelFwd, CVector &wheelRight, CVector &wheelCon
turnDirection = direction;
float impulse = speed*m_fMass;
- float turnImpulse = turnSpeed*GetMass(wheelContactPoint, turnDirection);
+ float turnImpulse = turnSpeed*GetMass(wheelContactPoint - Multiply3x3(GetMatrix(), m_vecCentreOfMass), turnDirection);
ApplyMoveForce(impulse * direction);
ApplyTurnForce(turnImpulse * turnDirection, wheelContactPoint);