Update: CC - Mouse Move - Moorcow (6st4io7ceu.js) 46 bytes modified
parent
d79f267112
commit
10283d8759
|
@ -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.x = this.mouse.x * 20;
|
||||||
this.camera.lookAt.y = this.mouse.y * 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.camera.updateInstance('lookAt');
|
||||||
|
|
||||||
this.raycaster.setFromCamera(
|
this.raycaster.setFromCamera(
|
||||||
|
|
Loading…
Reference in New Issue