diff --git a/dywmtohrda.js b/dywmtohrda.js index 3b87d9a..49761a3 100644 --- a/dywmtohrda.js +++ b/dywmtohrda.js @@ -151,7 +151,7 @@ if (this.spawningBullets === true) { - var direction = lookAt.sub(position).normalize(); + var direction = lookAt.sub(position).normalize().add(this.camera.position.instance); var start = direction.clone(); @@ -161,6 +161,7 @@ if (this.spawningBullets === true) { end.multiplyScalar(100); + console.log(start); //var mInverse = new THREE.Matrix4().getInverse( this.sceneCrosshair.instance.matrixWorld );