From e7b4289d12eb7f974051364ebaa90d28f2c871bd Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Sun, 4 Dec 2022 18:38:59 +0530 Subject: [PATCH] fix noise by magnets, tornadoes and ductfans --- src/shapes/DuctFan.hx | 4 ++-- src/shapes/SmallDuctFan.hx | 4 ++-- src/shapes/Tornado.hx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/shapes/DuctFan.hx b/src/shapes/DuctFan.hx index b1ab2627..a49cbf45 100644 --- a/src/shapes/DuctFan.hx +++ b/src/shapes/DuctFan.hx @@ -38,8 +38,8 @@ class DuctFan extends ForceObject { }); } - public override function update(timeState:src.TimeState) { - super.update(timeState); + public override function reset() { + super.reset(); var seffect = this.soundChannel.getEffect(Spatialization); seffect.position = this.getAbsPos().getPosition(); diff --git a/src/shapes/SmallDuctFan.hx b/src/shapes/SmallDuctFan.hx index 901382a3..11b1bea1 100644 --- a/src/shapes/SmallDuctFan.hx +++ b/src/shapes/SmallDuctFan.hx @@ -38,8 +38,8 @@ class SmallDuctFan extends ForceObject { }); } - public override function update(timeState:src.TimeState) { - super.update(timeState); + public override function reset() { + super.reset(); var seffect = this.soundChannel.getEffect(Spatialization); seffect.position = this.getAbsPos().getPosition(); diff --git a/src/shapes/Tornado.hx b/src/shapes/Tornado.hx index 67a8a260..0f0cf22d 100644 --- a/src/shapes/Tornado.hx +++ b/src/shapes/Tornado.hx @@ -59,8 +59,8 @@ class Tornado extends ForceObject { }); } - public override function update(timeState:src.TimeState) { - super.update(timeState); + public override function reset() { + super.reset(); var seffect = this.soundChannel.getEffect(Spatialization); seffect.position = this.getAbsPos().getPosition();