Update: CC - Demo New - Mouse Move (n9evs68jpd.js) 68 bytes modified

beta.r3js.org
-=yb4f310 2018-02-21 09:50:00 +01:00
parent 5e8a4188ea
commit 896cf4363d
1 changed files with 6 additions and 4 deletions

View File

@ -8,7 +8,7 @@ if (!this.initialized) {
this.camera = this.entityLoaded.camera;
this.meshImageGrid = this.entityLoaded.meshImageGrid;
this.meshBox = this.entityLoaded.meshBox;
this.lookatTarget = null;
this.initialized = true;
}
@ -35,9 +35,11 @@ var cursorPosition = this.camera.position.clone().add(
cursorPosition.z = 3;
this.meshBox.position.setFrom(cursorPosition);
this.meshBox.updateInstance('position');
this.lookAtTarget = cursorPosition;
this.meshImageGrid.lookAt(cursorPosition);
//this.meshBox.position.setFrom(cursorPosition);
//this.meshBox.updateInstance('position');
//this.meshImageGrid.lookAt(cursorPosition);
//@ sourceURL=mouseMove.js