1
0
Fork 0

Speed-up fix; now included in /sim/time/delta-sec

This commit is contained in:
James Turner 2016-01-05 23:23:16 -06:00
parent 2e8369434c
commit 8164811d9f

View file

@ -270,7 +270,7 @@ var lowpass = {
me.value = v;
},
_filter_: func(v) {
var dt = getprop("/sim/time/delta-sec")*getprop("/sim/speed-up");
var dt = getprop("/sim/time/delta-sec");
var c = dt / (me.coeff + dt);
me.value = v * c + me.value * (1 - c);
},
@ -1209,4 +1209,3 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
data._loop_ = func nil;
}
});