From b924cb57d3388b56b94bbe8b43dc318e74b11c6c Mon Sep 17 00:00:00 2001 From: sjbaker Date: Sun, 7 Jan 2007 05:41:50 +0000 Subject: [PATCH] Fixed wheels so they rotate in the correct direction. --- src/BulletDynamics/Vehicle/btRaycastVehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BulletDynamics/Vehicle/btRaycastVehicle.cpp b/src/BulletDynamics/Vehicle/btRaycastVehicle.cpp index 3d1763e43..aea08479b 100644 --- a/src/BulletDynamics/Vehicle/btRaycastVehicle.cpp +++ b/src/BulletDynamics/Vehicle/btRaycastVehicle.cpp @@ -110,7 +110,7 @@ void btRaycastVehicle::updateWheelTransform( int wheelIndex , bool interpolatedT btQuaternion steeringOrn(up,steering);//wheel.m_steering); btMatrix3x3 steeringMat(steeringOrn); - btQuaternion rotatingOrn(right,wheel.m_rotation); + btQuaternion rotatingOrn(right,-wheel.m_rotation); btMatrix3x3 rotatingMat(rotatingOrn); btMatrix3x3 basis2(