From 042522635d28239a515ba578332efec07d413005 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 9 Mar 2018 16:14:29 +0100 Subject: [PATCH] Update: CC - SnailRunner - Mouse Move (jz3qg0174l.js) 495 bytes modified --- jz3qg0174l.js | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/jz3qg0174l.js b/jz3qg0174l.js index 64317cb..41d8d0e 100644 --- a/jz3qg0174l.js +++ b/jz3qg0174l.js @@ -4,34 +4,13 @@ if (!this.entityLoaded) { if (!this.initialized) { this.mouse = this.entityLoaded.mouse; - this.raycaster = this.entityLoaded.raycaster; this.initialized = true; } this.mouse.x = (data.event.offsetX / data.event.target.width ) * 2 - 1; this.mouse.y = -(data.event.offsetY / data.event.target.height) * 2 + 1; -//this.camera.lookAt.x = this.mouse.x * 20; -//this.camera.lookAt.y = this.mouse.y * 20; -//this.camera.lookAt.z = 0; -//this.camera.updateInstance('lookAt'); - -this.raycaster.setFromCamera( - this.mouse, - this.camera -); - -var distance = - this.camera.position.z / this.raycaster.direction.z; -var cursorPosition = this.camera.position.clone().add( - this.raycaster.direction.clone().multiply( - distance, - true - ) -); - -cursorPosition.z = 3; - -this.lookAtTarget = cursorPosition; +this.update3dCursor(); //var left = false; //var right = false;