Update: CC - Mouse Move - Moorcow (8a0m30eevi.js) 373 bytes modified

beta.r3js.org
-=yb4f310 2017-11-14 08:54:47 +01:00
parent e20cf3c7f3
commit aef5c76c4b
1 changed files with 9 additions and 0 deletions

View File

@ -3,6 +3,13 @@ if (!this.entityLoaded) {
}
if (!this.initialized) {
this.mouse = this.entityLoaded.mouse;
this.raycaster = this.entityLoaded.raycaster;
this.camera = this.entityLoaded.camera;
this.scene = this.entityLoaded.scene;
this.cursor = this.entityLoaded.cursor;
this.thrower = this.entityLoaded.thrower;
this.throwerParticleEngine = this.entityLoaded.throwerParticleEngine;
this.initialized = true;
}
@ -77,6 +84,8 @@ intersects.map(
mesh.name.indexOf('Stone') === -1 //stones
) {
if (this.mouseIsDown)
if (mesh.instance.material instanceof Array) {
mesh.instance.material.map(
function(material) {