3
0
Fork 0
mirror of https://thingvellir.net/git/overte synced 2025-03-27 23:52:03 +01:00

Fixed a bug where particles weren't moving with can.

This commit is contained in:
ericrius1 2015-10-02 10:22:48 -07:00
parent 9f5a3066b8
commit f6c888599e

View file

@ -99,7 +99,7 @@
this.sprayInjector = Audio.playSound(this.spraySound, {
position: position,
volume: 0.1,
volume: this.sprayVolume,
loop: true
});
@ -136,16 +136,21 @@
position: position,
emitOrientation: forwardQuat,
});
this.sprayInjector.setOptions({position: position});
this.sprayInjector.setOptions({
position: position,
volume: this.sprayVolume
});
}
this.preload = function(entityId) {
this.sprayVolume = 0.1;
this.spraying = false;
this.entityId = entityId;
this.resetKey = "resetMe";
}
this.unload = function() {
if (this.paintStream) {
Entities.deleteEntity(this.paintStream);