mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix noise by magnets, tornadoes and ductfans
This commit is contained in:
parent
ba5f06a40d
commit
bfaf31b822
4 changed files with 8 additions and 8 deletions
|
|
@ -39,8 +39,8 @@ class DuctFan extends ForceObject {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public override function update(timeState:src.TimeState) {
|
public override function reset() {
|
||||||
super.update(timeState);
|
super.reset();
|
||||||
|
|
||||||
var seffect = this.soundChannel.getEffect(Spatialization);
|
var seffect = this.soundChannel.getEffect(Spatialization);
|
||||||
seffect.position = this.getAbsPos().getPosition();
|
seffect.position = this.getAbsPos().getPosition();
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,8 @@ class Magnet extends ForceObject {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public override function update(timeState:src.TimeState) {
|
public override function reset() {
|
||||||
super.update(timeState);
|
super.reset();
|
||||||
|
|
||||||
if (this.soundChannel != null) {
|
if (this.soundChannel != null) {
|
||||||
var seffect = this.soundChannel.getEffect(Spatialization);
|
var seffect = this.soundChannel.getEffect(Spatialization);
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,8 @@ class SmallDuctFan extends ForceObject {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public override function update(timeState:src.TimeState) {
|
public override function reset() {
|
||||||
super.update(timeState);
|
super.reset();
|
||||||
|
|
||||||
var seffect = this.soundChannel.getEffect(Spatialization);
|
var seffect = this.soundChannel.getEffect(Spatialization);
|
||||||
seffect.position = this.getAbsPos().getPosition();
|
seffect.position = this.getAbsPos().getPosition();
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,8 @@ class Tornado extends ForceObject {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public override function update(timeState:src.TimeState) {
|
public override function reset() {
|
||||||
super.update(timeState);
|
super.reset();
|
||||||
|
|
||||||
var seffect = this.soundChannel.getEffect(Spatialization);
|
var seffect = this.soundChannel.getEffect(Spatialization);
|
||||||
seffect.position = this.getAbsPos().getPosition();
|
seffect.position = this.getAbsPos().getPosition();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue