Initial Commit: CC - Mouse Down (27ihfljfb8.js)

beta.r3js.org
-=yb4f310 2017-11-15 13:42:29 +01:00
parent e6de2d4368
commit 159b1621ae
1 changed files with 26 additions and 0 deletions

26
27ihfljfb8.js Normal file
View File

@ -0,0 +1,26 @@
if (!this.entityLoaded) {
return;
}
if (!this.initialized) {
/**
* Link some objects for MouseDown component
*/
this.throwerParticleEngine = this.entityLoaded.throwerParticleEngine;
this.beforeRender = this.entityLoaded.beforeRender;
this.mouseMove = this.entityLoaded.mouseMove;
this.initialized = true;
}
this.beforeRender.mouseIsDown = true;
this.mouseMove.mouseIsDown = true;
this.throwerParticleEngine.enabled = true;
this.throwerParticleEngine.particlesPerSecond = 50;
this.throwerParticleEngine.updateInstance('particlesPerSecond');
this.throwerParticleEngine.templateParticle.speed = 300;
this.throwerParticleEngine.templateParticle.scale.x = 15;
return null;
//@ sourceURL=mouseDown.js