engine revolutions based cab shake, pantograph control tweaks

This commit is contained in:
tmj-fstate
2018-02-21 23:23:05 +01:00
parent da9b1431ea
commit 0afa709249
4 changed files with 62 additions and 37 deletions

View File

@@ -41,7 +41,7 @@ Math3D::vector3 TSpring::ComputateForces( Math3D::vector3 const &pPosition1, Mat
// dist = VectorLength(&deltaP); // Magnitude of
// deltaP
dist = deltaP.Length();
if (dist != 0.0 ) {
if( dist > 0.00001 ) {
// Hterm = (dist - spring->restLen) * spring->Ks; // Ks * (dist - rest)
Hterm = ( dist - restLen ) * Ks; // Ks * (dist - rest)