diff --git a/n9evs68jpd.js b/n9evs68jpd.js index 86ce970..7e9ca3b 100644 --- a/n9evs68jpd.js +++ b/n9evs68jpd.js @@ -7,6 +7,8 @@ if (!this.initialized) { this.raycaster = this.entityLoaded.raycaster; this.camera = this.entityLoaded.camera; this.meshImageGrid = this.entityLoaded.meshImageGrid; + this.meshBox = this.entityLoaded.meshBox; + this.initialized = true; } @@ -31,6 +33,9 @@ var cursorPosition = this.camera.position.clone().add( ) ); +this.meshBox.position.setFrom(cursorPosition); +this.meshBox.updateInstance('position'); + this.meshImageGrid.lookAt(cursorPosition); //@ sourceURL=mouseMove.js \ No newline at end of file