use sim time delta for the lowpass, not realtime delta
This commit is contained in:
parent
df76344180
commit
9b7eafd658
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue