diff --git a/dywmtohrda.js b/dywmtohrda.js index 31eb23a..e183de2 100644 --- a/dywmtohrda.js +++ b/dywmtohrda.js @@ -149,6 +149,8 @@ if (this.spawningBullets === true) { var position = this.camera.position.instance.clone(); var lookAt = this.camera.lookAt.instance.clone(); + var direction = lookAt.sub(position).normalize(); + var start = new THREE.Vector3(0,0,0.5); start.unproject(this.camera.instance);