From 896cf4363d14b339aea392a6677e4c2624d14add Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Wed, 21 Feb 2018 09:50:00 +0100 Subject: [PATCH] Update: CC - Demo New - Mouse Move (n9evs68jpd.js) 68 bytes modified --- n9evs68jpd.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/n9evs68jpd.js b/n9evs68jpd.js index 0eec1d5..e3a7afb 100644 --- a/n9evs68jpd.js +++ b/n9evs68jpd.js @@ -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 \ No newline at end of file