Maik: remove tow end force smoothing.
This commit is contained in:
parent
7bfade1a3a
commit
e00b796b3c
1 changed files with 2 additions and 7 deletions
|
@ -734,13 +734,8 @@ void Hitch::integrate (float dt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//set the _reported_tow_end_force (smoothed)
|
//set the _reported_tow_end_force
|
||||||
//smooth it a bit and store it
|
Math::set3(_towEndForce,_reportTowEndForce);
|
||||||
float sc=10.*dt; //100ms
|
|
||||||
float tmp[3];
|
|
||||||
Math::mul3(sc,_towEndForce,tmp);
|
|
||||||
Math::mul3(1.-sc,_reportTowEndForce,_reportTowEndForce);
|
|
||||||
Math::add3(tmp,_reportTowEndForce,_reportTowEndForce);
|
|
||||||
|
|
||||||
if (_open) return;
|
if (_open) return;
|
||||||
if (_winchRelSpeed==0) return;
|
if (_winchRelSpeed==0) return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue