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
454dae7c16
commit
e7b4289d12
3 changed files with 6 additions and 6 deletions
|
|
@ -38,8 +38,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();
|
||||||
|
|
|
||||||
|
|
@ -38,8 +38,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();
|
||||||
|
|
|
||||||
|
|
@ -59,8 +59,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