Update: CC - Mouse Move - Moorcow (6st4io7ceu.js) 46 bytes modified

beta.r3js.org
-=yb4f310 2017-11-19 15:39:33 +01:00
parent d79f267112
commit 10283d8759
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ 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 = Math.cos(this.mouse.x) + Math.sin(this.mouse.y);
this.camera.lookAt.z = 0;
this.camera.updateInstance('lookAt');
this.raycaster.setFromCamera(