diff --git a/dywmtohrda.js b/dywmtohrda.js index bc8b7c3..07b5150 100644 --- a/dywmtohrda.js +++ b/dywmtohrda.js @@ -153,6 +153,8 @@ if (this.spawningBullets === true) { var direction = lookAt.sub(position).normalize(); + direction.add(position); + var start = direction.clone(); var end = direction.clone(); @@ -160,8 +162,7 @@ if (this.spawningBullets === true) { start.multiplyScalar(-100); end.multiplyScalar(100); - start.add(position); - end.add(position); + console.log(start);