diff --git a/jz3qg0174l.js b/jz3qg0174l.js index 09ced66..3ad1a7b 100644 --- a/jz3qg0174l.js +++ b/jz3qg0174l.js @@ -5,6 +5,7 @@ if (!this.entityLoaded) { if (!this.initialized) { this.snail = this.entityLoaded.snail; this.solar = this.entityLoaded.solar; + this.camera = this.entityLoaded.camera; this.initialized = true; } @@ -23,4 +24,9 @@ this.solar.position.z = this.snail.position.z; this.snail.updateInstance('position'); this.solar.updateInstance('position'); +this.camera.lookAt.x = this.snail.position.x; +this.camera.lookAt.y = this.snail.position.y; +this.camera.lookAt.z = this.snail.position.z; +this.camera.updateInstance('lookAt'); + //@ sourceURL=mouseMove.js \ No newline at end of file