diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2006-02-21 10:08:23 +0300 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2006-02-21 10:08:23 +0300 |
commit | e3b840d086ea4e0ae2bea226f3fd0111c3744e4b (patch) | |
tree | a682cb0da43bd4feec5d2f173e48d1561b1351d5 /extern | |
parent | e4d8bd59848c5da98d2c4fd2f4468a26694fcaeb (diff) |
exposed a few more tuning paramters
Diffstat (limited to 'extern')
-rwxr-xr-x | extern/bullet/BulletDynamics/Vehicle/RaycastVehicle.cpp | 2 | ||||
-rwxr-xr-x | extern/bullet/BulletDynamics/Vehicle/WheelInfo.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/extern/bullet/BulletDynamics/Vehicle/RaycastVehicle.cpp b/extern/bullet/BulletDynamics/Vehicle/RaycastVehicle.cpp index 2099aa9b880..096ccfd85d2 100755 --- a/extern/bullet/BulletDynamics/Vehicle/RaycastVehicle.cpp +++ b/extern/bullet/BulletDynamics/Vehicle/RaycastVehicle.cpp @@ -587,7 +587,7 @@ void RaycastVehicle::UpdateFriction(SimdScalar timeStep) SimdVector3 sideImp = axle[wheel] * sideImpulse[wheel]; - rel_pos[2] *= 0.1; + rel_pos[2] *= wheelInfo.m_rollInfluence; m_chassisBody->applyImpulse(sideImp,rel_pos); //apply friction impulse on the ground diff --git a/extern/bullet/BulletDynamics/Vehicle/WheelInfo.h b/extern/bullet/BulletDynamics/Vehicle/WheelInfo.h index bd69a634597..61687f58b3a 100755 --- a/extern/bullet/BulletDynamics/Vehicle/WheelInfo.h +++ b/extern/bullet/BulletDynamics/Vehicle/WheelInfo.h @@ -67,6 +67,7 @@ struct WheelInfo SimdScalar m_steering; SimdScalar m_rotation; SimdScalar m_deltaRotation; + SimdScalar m_rollInfluence; SimdScalar m_engineForce; @@ -96,6 +97,7 @@ struct WheelInfo m_rotation = 0.f; m_deltaRotation = 0.f; m_brake = 0.f; + m_rollInfluence = 0.1f; m_bIsFrontWheel = ci.m_bIsFrontWheel; } |