content/hifi-public/alan/Particles/SteamPuffs.js
Dale Glass 0d14e5a379 Initial data.
Needs a lot of cleanup. Data has been de-duplicated, and where identical copies existed, one of them
has been replaced with a symlink.

Some files have been excluded, such as binaries, installers and debug dumps. Some of that may still
be present.
2022-02-13 18:59:11 +01:00

73 lines
2.9 KiB
JavaScript

(function () {
var spawnPoint = {x:997,y:100,z:988.5};
// constructor
// constructor
function TestFx() {
var animationSettings = JSON.stringify({ fps: 30,
frameIndex: 0,
running: true,
firstFrame: 0,
lastFrame: 300,
loop: true });
this.entity = Entities.addEntity({ type: "ParticleEffect",
animationSettings: animationSettings,
position: spawnPoint,
maxParticles:1000,
lifespan:17,
emitRate:1,
emitSpeed:1,
speedSpread:0,
emitOrientation:{x:0,y:1,z:0,w:0},
emitDimensions:{x:0,y:0,z:0},
emitRadiusStart:1,
polarStart:0,
polarFinish:1,
azimuthStart:0,
azimuthFinish:0,
emitAcceleration:{x:0,y:0.1,z:0.1},
accelerationSpread:{x:0,y:0,z:0},
particleRadius:0.546,
radiusSpread:0,
radiusStart:9,
radiusFinish:0.9,
colorSpread:{},
colorStart:{},
colorFinish:{},
alpha:0.1,
alphaSpread:0,
alphaStart:0,
alphaFinish:0,
textures:"https://hifi-public.s3.amazonaws.com/alan/Particles/Particle-Sprite-Smoke-1.png"}
);
this.isPlaying = true;
}
TestFx.prototype.Destroy = function () {
Entities.editEntity(this.entity, { locked: false });
Entities.deleteEntity(this.entity);
}
var objs = [];
function Init() {
objs.push(new TestFx());
}
function ShutDown() {
var i, len = objs.length;
for (i = 0; i < len; i++) {
objs[i].Destroy();
}
objs = [];
}
Init();
Script.scriptEnding.connect(ShutDown);
})();