diff --git a/dywmtohrda.js b/dywmtohrda.js index 7164061..496614d 100644 --- a/dywmtohrda.js +++ b/dywmtohrda.js @@ -149,7 +149,7 @@ if (this.spawningBullets === true) { var position = this.camera.position.instance.clone(); var lookAt = this.camera.lookAt.instance.clone(); - var direction = position.subtract(lookAt); + var direction = position.sub(lookAt); @@ -160,8 +160,8 @@ if (this.spawningBullets === true) { var geometry = new THREE.Geometry(); geometry.vertices.push( - direction.add(200), - direction.subtract(200) + direction.addScalar(200), + direction.subScalar(200) ); var line = new THREE.Line( geometry, material );