From e60edbc56b101846026576dec2375a89f78d2d15 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 31 Oct 2017 13:48:22 +0100 Subject: [PATCH] Update: Custom Code - BK Flame - Before Render (dywmtohrda.js) 2 bytes modified --- dywmtohrda.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 );