From 08d77c8e87b2762d1b73630ccd39c959436bfcaf Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 20 Feb 2018 16:26:08 +0100 Subject: [PATCH] Update: CC - Demo New - Mouse Move (n9evs68jpd.js) 135 bytes modified --- n9evs68jpd.js | 5 +++++ 1 file changed, 5 insertions(+) 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