1
0
Fork 0

use sim time delta for the lowpass, not realtime delta

This commit is contained in:
mfranz 2007-11-06 21:22:06 +00:00
parent df76344180
commit 9b7eafd658

View file

@ -320,7 +320,7 @@ var lowpass = {
me.value = v;
},
_filter_ : func(v) {
var dt = getprop("/sim/time/delta-realtime-sec");
var dt = getprop("/sim/time/delta-sec");
var c = dt / (me.coeff + dt);
me.value = v * c + me.value * (1 - c);
},