From e647277ef13cfb117a4840ce9d6745907eec7405 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 31 Oct 2017 13:53:16 +0100 Subject: [PATCH] Update: Custom Code - BK Flame - Before Render (dywmtohrda.js) 30 bytes modified --- dywmtohrda.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dywmtohrda.js b/dywmtohrda.js index bb51657..6c5260e 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.sub(lookAt); + var direction = position.sub(lookAt).normalize(); console.log(lookAt); @@ -160,8 +160,8 @@ if (this.spawningBullets === true) { var geometry = new THREE.Geometry(); geometry.vertices.push( - position, - lookAt + direction, + direction.addScalar(500); ); var line = new THREE.Line( geometry, material );